IVsFinder.Find 方法

查找在文本范围内的文本图像。

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

语法

声明
Function Find ( _
    grfFindHow As UInteger, _
    <OutAttribute> ptsMatch As TextSpan(), _
    <OutAttribute> ByRef pgrfResult As UInteger _
) As Integer
int Find(
    uint grfFindHow,
    TextSpan[] ptsMatch,
    out uint pgrfResult
)
int Find(
    [InAttribute] unsigned int grfFindHow, 
    [InAttribute] [OutAttribute] array<TextSpan>^ ptsMatch, 
    [OutAttribute] unsigned int% pgrfResult
)
abstract Find : 
        grfFindHow:uint32 * 
        ptsMatch:TextSpan[] byref * 
        pgrfResult:uint32 byref -> int
function Find(
    grfFindHow : uint, 
    ptsMatch : TextSpan[], 
    pgrfResult : uint
) : int

参数

  • grfFindHow
    类型:UInt32

    [in] 搜索的命令。 值从 __VSFINDHOW 枚举中采用。

  • pgrfResult
    类型:UInt32%

    [out] 结果标志。

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 textfind.idl:

HRESULT IVsFinder::Find(
   [in] VSFINDHOW grfFindHow,
   [in, out] TextSpan * ptsMatch,
   [out] BOOL pgrfResult
);

.NET Framework 安全性

请参阅

参考

IVsFinder 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间