IVsFindTarget.MarkSpan(TextSpan[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
突出显示给定的文本范围。
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
参数
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 textmgr:
HRESULT IVsFindTarget::MarkSpan(
[in] const TextSpan * pts
);
对于非图像目标,通过 Find 使用 FR_MarkAll 为参数指定的值调用来实现标记 all rgfOptions 。 支持 标记 的图像目标 都 支持 MarkSpan 方法。