IVsTextView3.AddProjectionAwareCommandFilter 方法

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

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop.11.0(在 Microsoft.VisualStudio.TextManager.Interop.11.0.dll 中)

语法

声明
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

参数

  • 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.

返回值

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

.NET Framework 安全性

请参阅

参考

IVsTextView3 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间