Replaces text.
Declaration Syntax
C# | Visual Basic | Visual 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 _ )
public: void Replace( int offset, int length, String^ 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 (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: 5.0.0.4238