Metoda TextBuffer.Find —
Ten interfejs API obsługuje infrastrukturę programu .NET Framework i nie jest przeznaczony do użycia bezpośrednio w kodzie.
Microsoft tylko do użytku wewnętrznego.
Przestrzeń nazw: EnvDTE
Zestaw: EnvDTE (w EnvDTE.dll)
Składnia
'Deklaracja
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
Parametry
Target
Typ: StringAby znaleźć ciąg.
StartLine
Typ: Int32%Linia, od którego ma się rozpocząć.
StartColumn
Typ: Int32%Kolumna, z którego ma się rozpocząć.
EndLine
Typ: Int32%Wiersz, w którym przestanie.
EndColumn
Typ: Int32%Kolumna, w którym przestanie.
WholeWord
Typ: BooleantrueJeśli operacja znajdowania powinny być zgodne na wyraz, w przeciwnym razie false.
MatchCase
Typ: BooleantrueJeśli operacja wyszukiwania należy inaczej Uwzględnij wielkość liter elementu docelowego, false.
PatternSearch
Typ: BooleantrueJeśli operacja wyszukiwania należy inaczej zgodny ze wzorcem docelowej false.
Wartość zwracana
Typ: Boolean
true Jeśli znajdowanie znaleziony ciąg, w przeciwnym razie false.
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Używanie bibliotek pochodzących z częściowo zaufanego kodu.