Share via


IVsTextView3.AddProjectionAwareCommandFilter Method

Definition

Adds a command filter which will be called even when the view selection or caret does not map to the underlying buffer.

public:
 int AddProjectionAwareCommandFilter(Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ pNewCmdTarg, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ % ppNextCmdTarg);
public:
 int AddProjectionAwareCommandFilter(Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ pNewCmdTarg, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ &  ppNextCmdTarg);
int AddProjectionAwareCommandFilter(Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget const & pNewCmdTarg, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget const & & ppNextCmdTarg);
public int AddProjectionAwareCommandFilter (Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget pNewCmdTarg, out Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget ppNextCmdTarg);
abstract member AddProjectionAwareCommandFilter : Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget * IOleCommandTarget -> int
Public Function AddProjectionAwareCommandFilter (pNewCmdTarg As IOleCommandTarget, ByRef ppNextCmdTarg As IOleCommandTarget) As Integer

Parameters

pNewCmdTarg
IOleCommandTarget

[in] Pointer to the new command filter to add to the command filter chain.

ppNextCmdTarg
IOleCommandTarget

[out] Pointer to a command filter used to handle commands not dealt with by the pNewCmdTarg command filter.

Returns

Returns S_OK if the method is successful; otherwise, returns an error code.

Applies to