Compartir a través de


IVsTextView3.AddProjectionAwareCommandFilter (Método)

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

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop.11.0 (en Microsoft.VisualStudio.TextManager.Interop.11.0.dll)

Sintaxis

'Declaración
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

Parámetros

  • pNewCmdTarg
    Tipo: IOleCommandTarget

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

  • ppNextCmdTarg
    Tipo: IOleCommandTarget%

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

Valor devuelto

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

Seguridad de .NET Framework

Vea también

Referencia

IVsTextView3 Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)