EditPoint2.Insert Method
Inserts the given string at the edit point's current position in the buffer.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
Syntax
'Declaration
Sub Insert ( _
Text As String _
)
void Insert(
string Text
)
void Insert(
[InAttribute] String^ Text
)
abstract Insert :
Text:string -> unit
function Insert(
Text : String
)
Parameters
Text
Type: StringRequired. The text to insert into the text buffer. It must be a Unicode string.
Remarks
The edit point moves past the insertion point.
Examples
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.