AvalonEdit
Replace Method (offset, length, text, offsetChangeMappingType)
NamespacesICSharpCode.AvalonEdit.DocumentTextDocumentReplace(Int32, Int32, ITextSource, OffsetChangeMappingType)
Replaces text.
Declaration Syntax
C#Visual BasicVisual C++
public void Replace(
	int offset,
	int length,
	ITextSource text,
	OffsetChangeMappingType offsetChangeMappingType
)
Public Sub Replace ( _
	offset As Integer, _
	length As Integer, _
	text As ITextSource, _
	offsetChangeMappingType As OffsetChangeMappingType _
)
public:
void Replace(
	int offset, 
	int length, 
	ITextSource^ text, 
	OffsetChangeMappingType offsetChangeMappingType
)
Parameters
offset (Int32)
The starting offset of the text to be replaced.
length (Int32)
The length of the text to be replaced.
text (ITextSource)
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: 5.0.0.4238