Document.ReplaceText 方法

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

僅限 Microsoft 內部使用。

命名空間:  EnvDTE
組件:  EnvDTE (在 EnvDTE.dll 中)

語法

'宣告
Function ReplaceText ( _
    FindText As String, _
    ReplaceText As String, _
    Flags As Integer _
) As Boolean
bool ReplaceText(
    string FindText,
    string ReplaceText,
    int Flags
)
bool ReplaceText(
    [InAttribute] String^ FindText, 
    [InAttribute] String^ ReplaceText, 
    [InAttribute] int Flags
)
abstract ReplaceText : 
        FindText:string * 
        ReplaceText:string * 
        Flags:int -> bool 
function ReplaceText(
    FindText : String, 
    ReplaceText : String, 
    Flags : int
) : boolean

參數

傳回值

型別:System.Boolean
如果取代了文字則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

Document 介面

EnvDTE 命名空間