TextDocument.ReplaceText Method
Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Editor
Declaring Type: TextDocument
Overloads
ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, string, EditSemantics) | Replaces a range of text with the specified text |
ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, Topten.RichTextKit.Utils.Slice<int>, EditSemantics) | Replaces a range of text with the specified text |
ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, string, EditSemantics)
Replaces a range of text with the specified text
public void ReplaceText(ITextDocumentView view, Topten.RichTextKit.TextRange range, string text, EditSemantics semantics);
Parameters
ITextDocumentView view | The view initiating the operation |
Topten.RichTextKit.TextRange range | The range to be replaced |
string text | The text to replace with |
EditSemantics semantics | Controls how undo operations are coalesced and view selections updated |
ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, Topten.RichTextKit.Utils.Slice<int>, EditSemantics)
Replaces a range of text with the specified text
public void ReplaceText(ITextDocumentView view, Topten.RichTextKit.TextRange range, Topten.RichTextKit.Utils.Slice<int> codePoints, EditSemantics semantics);
Parameters
ITextDocumentView view | The view initiating the operation |
Topten.RichTextKit.TextRange range | The range to be replaced |
Topten.RichTextKit.Utils.Slice<int> codePoints | The text to replace with |
EditSemantics semantics | Controls how undo operations are coalesced and view selections updated |