TextBuffer.Find 方法
這個應用程式開發介面支援 .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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。