TextBuffer.Find 方法

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

仅由 Microsoft 内部使用。

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
Function Find ( _
    Target As String, _
    <OutAttribute> ByRef StartLine As Integer, _
    <OutAttribute> ByRef StartColumn As Integer, _
    <OutAttribute> ByRef EndLine As Integer, _
    <OutAttribute> ByRef EndColumn As Integer, _
    WholeWord As Boolean, _
    MatchCase As Boolean, _
    PatternSearch As Boolean _
) As Boolean
bool Find(
    string Target,
    out int StartLine,
    out int StartColumn,
    out int EndLine,
    out int EndColumn,
    bool WholeWord,
    bool MatchCase,
    bool PatternSearch
)
bool Find(
    [InAttribute] String^ Target, 
    [InAttribute] [OutAttribute] int% StartLine, 
    [InAttribute] [OutAttribute] int% StartColumn, 
    [InAttribute] [OutAttribute] int% EndLine, 
    [InAttribute] [OutAttribute] int% EndColumn, 
    [InAttribute] bool WholeWord, 
    [InAttribute] bool MatchCase, 
    [InAttribute] bool PatternSearch
)
abstract Find : 
        Target:string * 
        StartLine:int byref * 
        StartColumn:int byref * 
        EndLine:int byref * 
        EndColumn:int byref * 
        WholeWord:bool * 
        MatchCase:bool * 
        PatternSearch:bool -> bool 
function Find(
    Target : String, 
    StartLine : int, 
    StartColumn : int, 
    EndLine : int, 
    EndColumn : int, 
    WholeWord : boolean, 
    MatchCase : boolean, 
    PatternSearch : boolean
) : boolean

参数

  • WholeWord
    类型:System.Boolean
    如果查找操作应匹配某个字,则为 true;否则为 false。
  • MatchCase
    类型:System.Boolean
    如果查找操作应匹配目标的大小写,则为 true;否则为 false。
  • PatternSearch
    类型:System.Boolean
    如果查找操作应匹配目标模式,则为 true;否则为 false。

返回值

类型:System.Boolean
如果查找操作找到了字符串,则为 true;否则为 false。

.NET Framework 安全性

请参见

参考

TextBuffer 接口

EnvDTE 命名空间