IVsFinder::Find Method (UInt32, array<TextSpan>^, UInt32)
Visual Studio 2015
Finds a text image within a text span.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int Find( unsigned int grfFindHow, array<TextSpan>^ ptsMatch, [OutAttribute] unsigned int% pgrfResult )
Parameters
- grfFindHow
-
Type:
System::UInt32
[in] Instructions for the search. Values are taken from the __VSFINDHOW enumeration.
- ptsMatch
-
Type:
array<Microsoft.VisualStudio.TextManager.Interop::TextSpan>^
[in] The span or extent of text to search.
- pgrfResult
-
Type:
System::UInt32
[out] Enumeration value indicating result of the operation. Values are taken from the __VSFINDSTATE enum.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textfind.idl:
HRESULT IVsFinder::Find( [in] VSFINDHOW grfFindHow, [in, out] TextSpan * ptsMatch, [out] BOOL pgrfResult );
Show: