Share via


IVsFinder.Find(UInt32, TextSpan[], UInt32) Method

Definition

Finds a text image within a text span.

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

Parameters

grfFindHow
UInt32

[in] Instructions for the search. Values are taken from the __VSFINDHOW enumeration.

ptsMatch
TextSpan[]

[in] The span or extent of text to search.

pgrfResult
UInt32

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

Returns

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  
);  

Applies to