Partager via


IVsTextView3.AddProjectionAwareCommandFilter Method

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

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.11.0 (in Microsoft.VisualStudio.TextManager.Interop.11.0.dll)

Syntax

'Déclaration
Function AddProjectionAwareCommandFilter ( _
    pNewCmdTarg As IOleCommandTarget, _
    <OutAttribute> ByRef ppNextCmdTarg As IOleCommandTarget _
) As Integer
int AddProjectionAwareCommandFilter(
    IOleCommandTarget pNewCmdTarg,
    out IOleCommandTarget ppNextCmdTarg
)
int AddProjectionAwareCommandFilter(
    [InAttribute] IOleCommandTarget^ pNewCmdTarg, 
    [OutAttribute] IOleCommandTarget^% ppNextCmdTarg
)
abstract AddProjectionAwareCommandFilter : 
        pNewCmdTarg:IOleCommandTarget * 
        ppNextCmdTarg:IOleCommandTarget byref -> int 
function AddProjectionAwareCommandFilter(
    pNewCmdTarg : IOleCommandTarget, 
    ppNextCmdTarg : IOleCommandTarget
) : int

Parameters

Return Value

Type: System.Int32
Returns S_OK if the method is successful; otherwise, returns an error code.

.NET Framework Security

See Also

Reference

IVsTextView3 Interface

Microsoft.VisualStudio.TextManager.Interop Namespace