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

参数

  • 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。

.NET Framework 安全性

请参阅

参考

TextBuffer 接口

EnvDTE 命名空间