IVsFindTarget.MarkSpan(TextSpan[]) 方法

定义

突出显示给定的文本范围。

public:
 int MarkSpan(cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts);
public:
 int MarkSpan(Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ pts);
int MarkSpan(std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & pts);
public int MarkSpan (Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pts);
abstract member MarkSpan : Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> int
Public Function MarkSpan (pts As TextSpan()) As Integer

参数

pts
TextSpan[]

中指定要突出显示的文本跨距。 值包含在结构中 TextSpan

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从 textmgr:

HRESULT IVsFindTarget::MarkSpan(  
   [in] const TextSpan * pts  
);  

对于非图像目标,通过 Find 使用 FR_MarkAll 为参数指定的值调用来实现标记 all rgfOptions 。 支持 标记 的图像目标 支持 MarkSpan 方法。

适用于