IVsFinder.Find(UInt32, TextSpan[], UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在文本范围内查找文本图像。
public:
int Find(System::UInt32 grfFindHow, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsMatch, [Runtime::InteropServices::Out] System::UInt32 % pgrfResult);
int Find(unsigned int grfFindHow, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsMatch, [Runtime::InteropServices::Out] unsigned int & pgrfResult);
public int Find (uint grfFindHow, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsMatch, out uint pgrfResult);
abstract member Find : uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * uint32 -> int
Public Function Find (grfFindHow As UInteger, ptsMatch As TextSpan(), ByRef pgrfResult As UInteger) As Integer
参数
- grfFindHow
- UInt32
中搜索说明。 值取自 __VSFINDHOW 枚举。
- ptsMatch
- TextSpan[]
中要搜索的文本范围或范围。
- pgrfResult
- UInt32
弄指示操作结果的枚举值。 值取自 __VSFINDSTATE 枚举。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 textfind:
HRESULT IVsFinder::Find(
[in] VSFINDHOW grfFindHow,
[in, out] TextSpan * ptsMatch,
[out] BOOL pgrfResult
);