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

 

Requests a text string search.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int Find(
	string pszSearch,
	uint grfOptions,
	int fResetStartPoint,
	IVsFindHelper pHelper,
	out uint 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.Int32

If 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.

Return to top
Show: