IVsFindTarget::Find Method (String^, UInt32, Int32, IVsFindHelper^, UInt32)
Visual Studio 2015
Requests a text string search.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int Find( String^ pszSearch, unsigned int grfOptions, int fResetStartPoint, IVsFindHelper^ pHelper, [OutAttribute] unsigned int% pResult )
Parameters
- pszSearch
-
Type:
System::String^
[in] Pointer to a null terminated string containing the search text.
- grfOptions
-
Type:
System::UInt32
[in] Specifies the search options. Values are taken from the __VSFINDOPTIONS enumeration.
- fResetStartPoint
-
Type:
System::Int32
[in] Flag to reset the search start point.
- pHelper
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsFindHelper^
[in] Pointer to a IVsFindHelper interface.
- pResult
-
Type:
System::UInt32
[out] Pointer to the search result. Values are taken from the __VSFINDRESULT enumeration.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implement either GetSearchImage method or Find and Replace methods.
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.
Show: