Share via


VsFinderClass.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

'Declaration
Public Overridable Function Find ( _
    grfFindHow As UInteger, _
    <OutAttribute> ptsMatch As TextSpan(), _
    <OutAttribute> ByRef pgrfResult As UInteger _
) As Integer
public virtual int Find(
    uint grfFindHow,
    TextSpan[] ptsMatch,
    out uint pgrfResult
)
public:
virtual 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  
override Find : 
        grfFindHow:uint32 * 
        ptsMatch:TextSpan[] byref * 
        pgrfResult:uint32 byref -> int
public function Find(
    grfFindHow : uint, 
    ptsMatch : TextSpan[], 
    pgrfResult : uint
) : int

Parameters

  • pgrfResult
    Type: System.UInt32%

    [out] Enumeration value indicating result of the operation. Values are taken from the __VSFINDSTATE enum.

Return Value

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

Implements

IVsFinder.Find(UInt32, array<TextSpan[], UInt32%)

.NET Framework Security

See Also

Reference

VsFinderClass Class

Microsoft.VisualStudio.TextManager.Interop Namespace