IVsTextView3::AddProjectionAwareCommandFilter Method (IOleCommandTarget^, IOleCommandTarget^)
Visual Studio 2015
Adds a command filter which will be called even when the view selection or caret does not map to the underlying buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop.11.0 (in Microsoft.VisualStudio.TextManager.Interop.11.0.dll)
int AddProjectionAwareCommandFilter(
IOleCommandTarget^ pNewCmdTarg,
[OutAttribute] IOleCommandTarget^% ppNextCmdTarg
)
Parameters
- pNewCmdTarg
-
Type:
Microsoft.VisualStudio.OLE.Interop::IOleCommandTarget^
[in] Pointer to the new command filter to add to the command filter chain.
- ppNextCmdTarg
-
Type:
Microsoft.VisualStudio.OLE.Interop::IOleCommandTarget^
[out] Pointer to a command filter used to handle commands not dealt with by the pNewCmdTarg command filter.
Return Value
Type: System::Int32Returns S_OK if the method is successful; otherwise, returns an error code.
Show: