TextDocument.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 ( _
    FindText As String, _
    ReplaceText As String, _
    vsFindOptionsValue As Integer _
) As Boolean
bool ReplaceText(
    string FindText,
    string ReplaceText,
    int vsFindOptionsValue
)
bool ReplaceText(
    [InAttribute] String^ FindText, 
    [InAttribute] String^ ReplaceText, 
    [InAttribute] int vsFindOptionsValue
)
abstract ReplaceText : 
        FindText:string * 
        ReplaceText:string * 
        vsFindOptionsValue:int -> bool
function ReplaceText(
    FindText : String, 
    ReplaceText : String, 
    vsFindOptionsValue : int
) : boolean

Parameters

  • ReplaceText
    Type: System.String

    The text with which to replace the found text.

Return Value

Type: System.Boolean
A Boolean value.

.NET Framework Security

See Also

Reference

TextDocument Interface

EnvDTE Namespace