Partager via


IVsFindTarget.Find(String, UInt32, Int32, IVsFindHelper, UInt32) Method

Definition

Requests a text string search.

public:
 int Find(System::String ^ pszSearch, System::UInt32 grfOptions, int fResetStartPoint, Microsoft::VisualStudio::TextManager::Interop::IVsFindHelper ^ pHelper, [Runtime::InteropServices::Out] System::UInt32 % pResult);
int Find(std::wstring const & pszSearch, unsigned int grfOptions, int fResetStartPoint, Microsoft::VisualStudio::TextManager::Interop::IVsFindHelper const & pHelper, [Runtime::InteropServices::Out] unsigned int & pResult);
public int Find (string pszSearch, uint grfOptions, int fResetStartPoint, Microsoft.VisualStudio.TextManager.Interop.IVsFindHelper pHelper, out uint pResult);
abstract member Find : string * uint32 * int * Microsoft.VisualStudio.TextManager.Interop.IVsFindHelper * uint32 -> int
Public Function Find (pszSearch As String, grfOptions As UInteger, fResetStartPoint As Integer, pHelper As IVsFindHelper, ByRef pResult As UInteger) As Integer

Parameters

pszSearch
String

[in] Pointer to a null terminated string containing the search text.

grfOptions
UInt32

[in] Specifies the search options. Values are taken from the __VSFINDOPTIONS enumeration.

fResetStartPoint
Int32

[in] Flag to reset the search start point.

pHelper
IVsFindHelper

[in] Pointer to a IVsFindHelper interface.

pResult
UInt32

[out] Pointer to the search result. Values are taken from the __VSFINDRESULT enumeration.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

Implement either GetSearchImage method or Find and Replace methods.

COM Signature

From textmgr.idl:

HRESULT IVsFindTarget::Find(  
   [in] LPCOLESTR pszSearch,  
   [in] VSFINDOPTIONS grfOptions,  
   [in] BOOL fResetStartPoint,  
   [in] IVsFindHelper * pHelper  
);  

This method is used only when GetSearchImage is not implemented.

Applies to