IVsTextView3.AddProjectionAwareCommandFilter 方法

定义

添加一个命令筛选器,即使在视图选定内容或插入符号未映射到基础缓冲区时,也会调用该筛选器。

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

参数

pNewCmdTarg
IOleCommandTarget

中指向要添加到命令筛选器链中的新命令筛选器的指针。

ppNextCmdTarg
IOleCommandTarget

弄一个指针,指向用于处理命令筛选器不处理的命令的命令筛选器 pNewCmdTarg

返回

Int32

S_OK如果方法成功,则返回; 否则返回错误代码。

适用于