Partager via


TextBuffer.Find Method

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

Microsoft Internal Use Only.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
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

Parameters

  • StartLine
    Type: System.Int32%

    The line from which to start.

  • StartColumn
    Type: System.Int32%

    The column from which to start.

  • EndColumn
    Type: System.Int32%

    The column at which to stop.

  • WholeWord
    Type: System.Boolean

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

  • MatchCase
    Type: System.Boolean

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

  • PatternSearch
    Type: System.Boolean

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

Return Value

Type: System.Boolean
true if the find operation found the string, otherwise false.

.NET Framework Security

See Also

Reference

TextBuffer Interface

EnvDTE Namespace