IEditorOperations.ReplaceSelection, méthode

Remplace la sélection de texte 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 ReplaceSelection ( _
    text As String _
) As Boolean
bool ReplaceSelection(
    string text
)
bool ReplaceSelection(
    String^ text
)
abstract ReplaceSelection : 
        text:string -> bool
function ReplaceSelection(
    text : String
) : boolean

Paramètres

  • text
    Type : String

    Le texte à l'utiliser comme remplacement.

Valeur de retour

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

Exceptions

Exception Condition
ArgumentNullException

text a la valeur nullune référence null (Nothing en Visual Basic).

Sécurité .NET Framework

Voir aussi

Référence

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations, espace de noms