TextBuffer.Find Method

Definition

Microsoft Internal Use Only.

This API supports the product infrastructure and is not intended to be used directly from your code.

bool Find(std::wstring const & Target, [Runtime::InteropServices::Out] int & StartLine, [Runtime::InteropServices::Out] int & StartColumn, [Runtime::InteropServices::Out] int & EndLine, [Runtime::InteropServices::Out] int & EndColumn, bool WholeWord = false, bool MatchCase = false, bool PatternSearch = false);
[System.Runtime.InteropServices.DispId(14)]
public bool Find (string Target, out int StartLine, out int StartColumn, out int EndLine, out int EndColumn, bool WholeWord = false, bool MatchCase = false, bool PatternSearch = false);
[<System.Runtime.InteropServices.DispId(14)>]
abstract member Find : string * int * int * int * int * bool * bool * bool -> bool
Public Function Find (Target As String, ByRef StartLine As Integer, ByRef StartColumn As Integer, ByRef EndLine As Integer, ByRef EndColumn As Integer, Optional WholeWord As Boolean = false, Optional MatchCase As Boolean = false, Optional PatternSearch As Boolean = false) As Boolean

Parameters

Target
String

The string to find.

StartLine
Int32

The line from which to start.

StartColumn
Int32

The column from which to start.

EndLine
Int32

The line at which to stop.

EndColumn
Int32

The column at which to stop.

WholeWord
Boolean

true if the find operation should match on a word, otherwise false.

MatchCase
Boolean

true if the find operation should match the case of the target, otherwise false.

PatternSearch
Boolean

true if the find operation should match the target pattern, otherwise false.

Returns

true if the find operation found the string, otherwise false.

Attributes

Applies to