Share via


IVsTextStorage.Storage_Find Method

Definition

Find the specified text in the indicated span.

public:
 int Storage_Find(System::String ^ pszText, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iFlags, [Runtime::InteropServices::Out] int % piLine, [Runtime::InteropServices::Out] int % piCol);
int Storage_Find(std::wstring const & pszText, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iFlags, [Runtime::InteropServices::Out] int & piLine, [Runtime::InteropServices::Out] int & piCol);
public int Storage_Find (string pszText, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, int iFlags, out int piLine, out int piCol);
abstract member Storage_Find : string * int * int * int * int * int * int * int -> int
Public Function Storage_Find (pszText As String, iStartLine As Integer, iStartIndex As Integer, iEndLine As Integer, iEndIndex As Integer, iFlags As Integer, ByRef piLine As Integer, ByRef piCol As Integer) As Integer

Parameters

pszText
String

[in] Text to locate.

iStartLine
Int32

[in] Starting line.

iStartIndex
Int32

[in] Starting character index within the line (must be <= length of line).

iEndLine
Int32

[in] Ending line.

iEndIndex
Int32

[in] Ending character index within the line (must be <= length of line).

iFlags
Int32

[in] Flags indicating search options.

piLine
Int32

[out] Line containing the start of the located text.

piCol
Int32

[out] Column of the start of the located text.

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextStorage::Storage_Find(  
   [in] const WCHAR * pszText,  
   [in] long iStartLine,  
   [in] CharIndex iStartIndex,  
   [in] long iEndLine,  
   [in] CharIndex iEndIndex,  
   [in] long iFlags,  
   [out] long * piLine,  
   [out] CharIndex * piCol  
);  

Applies to