Partager via


IEditorOperations.ReplaceText, méthode

Remplace le texte de l'étendue spécifiée par le texte spécifié.

Espace de noms :  Microsoft.VisualStudio.Text.Operations
Assembly :  Microsoft.VisualStudio.Text.UI (dans Microsoft.VisualStudio.Text.UI.dll)

Syntaxe

'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

Paramètres

  • text
    Type : String

    Nouveau texte.

Valeur de retour

Type : Boolean
true si la modification a réussi ; sinon false.

Sécurité .NET Framework

Voir aussi

Référence

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations, espace de noms