Insert Method (offset, text)
NamespacesICSharpCode.AvalonEdit.DocumentTextDocumentInsert(Int32, String)
Inserts text.
Declaration Syntax
C#Visual BasicVisual C++
public void Insert(
	int offset,
	string text
Public Sub Insert ( _
	offset As Integer, _
	text As String _
virtual void Insert(
	int offset, 
	String^ text
) sealed
offset (Int32)
The offset at which the text is inserted.
text (String)
The new text.
Anchors positioned exactly at the insertion offset will move according to their movement type. For AnchorMovementType.Default, they will move behind the inserted text. The caret will also move behind the inserted text.

Assembly: ICSharpCode.AvalonEdit (Module: ICSharpCode.AvalonEdit.dll) Version: