共用方式為


IVsFinder.Find Method

Finds a text image within a text span.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
Function Find ( _
    grfFindHow As UInteger, _
    <OutAttribute> ptsMatch As TextSpan(), _
    <OutAttribute> ByRef pgrfResult As UInteger _
) As Integer
'用途
Dim instance As IVsFinder
Dim grfFindHow As UInteger
Dim ptsMatch As TextSpan()
Dim pgrfResult As UInteger
Dim returnValue As Integer

returnValue = instance.Find(grfFindHow, _
    ptsMatch, pgrfResult)
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

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textfind.idl:

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

.NET Framework Security

See Also

Reference

IVsFinder Interface

IVsFinder Members

Microsoft.VisualStudio.TextManager.Interop Namespace