Udostępnij za pośrednictwem


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

Definition

Finds a text image within a text span.

public:
 virtual int Find(System::UInt32 grfFindHow, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsMatch, [Runtime::InteropServices::Out] System::UInt32 % pgrfResult) = Microsoft::VisualStudio::TextManager::Interop::IVsFinder::Find;
public:
 virtual int Find(System::UInt32 grfFindHow, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsMatch, [Runtime::InteropServices::Out] System::UInt32 % pgrfResult);
 virtual int Find(unsigned int grfFindHow, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsMatch, [Runtime::InteropServices::Out] unsigned int & pgrfResult);
public virtual int Find (uint grfFindHow, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsMatch, out uint pgrfResult);
abstract member Find : uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * uint32 -> int
override this.Find : uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] * uint32 -> int
Public Overridable 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.

Implements

Applies to