EditPoint.Insert, méthode

Insère la chaîne donnée à l'emplacement en cours du point d'édition dans le tampon.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

'Déclaration
Sub Insert ( _
    Text As String _
)
void Insert(
    string Text
)
void Insert(
    [InAttribute] String^ Text
)
abstract Insert : 
        Text:string -> unit 
function Insert(
    Text : String
)

Paramètres

  • Text
    Type : System.String
    Obligatoire.Texte à insérer dans le tampon de texte.Il doit s'agir d'une chaîne Unicode.

Notes

Le point d'édition est déplacé après le point d'insertion.

Exemples

Sub InsertExample()
  ' Before running this example, open a text document.
  Dim objTD As TextDocument
  Dim objEP As EditPoint

  objTD = DTE.ActiveDocument.Object("TextDocument")
  objEP = objTD.StartPoint.CreateEditPoint
  objEP.Insert("Test")
End Sub

Sécurité .NET Framework

Voir aussi

Référence

EditPoint Interface

EnvDTE, espace de noms