Partager via


IEditorOperations.ReplaceText Method

Replaces text from the specified span with the specified text.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Déclaration
Function ReplaceText ( _
    replaceSpan As Span, _
    text As String _
) As Boolean
bool ReplaceText(
    Span replaceSpan,
    string text
)
bool ReplaceText(
    Span replaceSpan, 
    String^ text
)
abstract ReplaceText : 
        replaceSpan:Span * 
        text:string -> bool 
function ReplaceText(
    replaceSpan : Span, 
    text : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the edit succeeded, otherwise false.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace