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

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