TextBuffer.Find 方法

定义

仅限 Microsoft 内部使用。

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

Target
String

要查找的字符串。

StartLine
Int32

要从其开始的行。

StartColumn
Int32

要从其开始的列。

EndLine
Int32

要停止的行。

EndColumn
Int32

要停止的列。

WholeWord
Boolean

true 如果查找操作应在一个词上匹配,则为; 否则为 false

MatchCase
Boolean

true 如果查找操作应匹配目标的大小写,则为; 否则为 false

PatternSearch
Boolean

true 如果查找操作应与目标模式匹配,则为; 否则为 false

返回

Boolean

true 如果查找操作找到了该字符串,则为; 否则为 false

属性

适用于