RichTextKit v0.4

TextDocument.ReplaceText Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Editor
Declaring Type: TextDocument

Overloads

ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, Topten.RichTextKit.StyledText, EditSemantics)

Replaces a range of text with the specified text

ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, string, EditSemantics, Topten.RichTextKit.IStyle)

Replaces a range of text with the specified text

ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, Topten.RichTextKit.Utils.Slice<int>, EditSemantics, Topten.RichTextKit.IStyle)

Replaces a range of text with the specified text

ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, Topten.RichTextKit.StyledText, EditSemantics)

Replaces a range of text with the specified text

public void ReplaceText(ITextDocumentView view, Topten.RichTextKit.TextRange range, Topten.RichTextKit.StyledText styledText, EditSemantics semantics);

Parameters

ITextDocumentView view

The view initiating the operation

Topten.RichTextKit.TextRange range

The range to be replaced

Topten.RichTextKit.StyledText styledText

The text to replace with

EditSemantics semantics

Controls how undo operations are coalesced and view selections updated

ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, string, EditSemantics, Topten.RichTextKit.IStyle)

Replaces a range of text with the specified text

public void ReplaceText(ITextDocumentView view, Topten.RichTextKit.TextRange range, string text, EditSemantics semantics, Topten.RichTextKit.IStyle styleToUse = null);

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

Topten.RichTextKit.IStyle styleToUse = null

The style to use for the added text (optional)

ReplaceText(ITextDocumentView, Topten.RichTextKit.TextRange, Topten.RichTextKit.Utils.Slice<int>, EditSemantics, Topten.RichTextKit.IStyle)

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, Topten.RichTextKit.IStyle styleToUse = null);

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

Topten.RichTextKit.IStyle styleToUse = null

The style to use for the added text (optional)