IEditorOperations.InsertText, méthode

Insère le texte spécifié à l'emplacement actuel du signe insertion.

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

Syntaxe

'Déclaration
Function InsertText ( _
    text As String _
) As Boolean
bool InsertText(
    string text
)
bool InsertText(
    String^ text
)
abstract InsertText : 
        text:string -> bool
function InsertText(
    text : String
) : boolean

Paramètres

  • text
    Type : String

    Texte à insérer dans la mémoire tampon.

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