Partager via


VsTextLineStorageClass.Storage_Find Method

Definition

Find the specified text in the indicated span. Flags indicating search options.

public:
 virtual 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) = Microsoft::VisualStudio::TextManager::Interop::IVsTextStorage::Storage_Find;
public:
 virtual 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);
 virtual 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 virtual 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
override this.Storage_Find : string * int * int * int * int * int * int * int -> int
Public Overridable 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.

Implements

Applies to