Share via


TextSelection.ReplaceText-Methode

Diese API unterstützt die .NET Framework-Infrastruktur und ist nicht für die direkte Verwendung in Code bestimmt.

Nur für die interne Verwendung durch Microsoft vorgesehen.

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

Syntax

'Declaration
Function ReplaceText ( _
    Pattern As String, _
    Replace As String, _
    vsFindOptionsValue As Integer _
) As Boolean
bool ReplaceText(
    string Pattern,
    string Replace,
    int vsFindOptionsValue
)
bool ReplaceText(
    [InAttribute] String^ Pattern, 
    [InAttribute] String^ Replace, 
    [InAttribute] int vsFindOptionsValue
)
abstract ReplaceText : 
        Pattern:string * 
        Replace:string * 
        vsFindOptionsValue:int -> bool 
function ReplaceText(
    Pattern : String, 
    Replace : String, 
    vsFindOptionsValue : int
) : boolean

Parameter

  • Replace
    Typ: System.String
    Die Zeichenfolge, mit der der gefundene Text ersetzt werden soll.

Rückgabewert

Typ: System.Boolean
true, wenn der Text ersetzt wurde, andernfalls false.

.NET Framework-Sicherheit

Siehe auch

Referenz

TextSelection Schnittstelle

EnvDTE-Namespace