EditPoint2::Insert Method (String^)

 

Inserts the given string at the edit point's current position in the buffer.

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

void Insert(
	String^ Text
)

Parameters

Text
Type: System::String^

Required. The text to insert into the text buffer. It must be a Unicode string.

The edit point moves past the insertion point.

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
Return to top
Show: