Udostępnij za pośrednictwem


TextSelection.ReplaceText 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 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

Parameters

  • Replace
    Type: System.String
    The string with which to replace the found text.

Return Value

Type: System.Boolean
true if the text was replaced, otherwise false.

.NET Framework Security

See Also

Reference

TextSelection Interface

EnvDTE Namespace