Replace Method (offset, length, text, offsetChangeMappingType)
NamespacesICSharpCode.AvalonEdit.DocumentTextDocumentReplace(Int32, Int32, String, OffsetChangeMappingType)
Replaces text.
Declaration Syntax
C#Visual BasicVisual C++
public void Replace(
	int offset,
	int length,
	string text,
	OffsetChangeMappingType offsetChangeMappingType
Public Sub Replace ( _
	offset As Integer, _
	length As Integer, _
	text As String, _
	offsetChangeMappingType As OffsetChangeMappingType _
void Replace(
	int offset, 
	int length, 
	String^ text, 
	OffsetChangeMappingType offsetChangeMappingType
offset (Int32)
The starting offset of the text to be replaced.
length (Int32)
The length of the text to be replaced.
text (String)
The new text.
offsetChangeMappingType (OffsetChangeMappingType)
The offsetChangeMappingType determines how offsets inside the old text are mapped to the new text. This affects how the anchors and segments inside the replaced region behave.

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