RichTextKit v0.4

TextRange.UpdateForEdit Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit
Declaring Type: TextRange

Create an updated text range that tries to represent the same piece of text from before an edit to after the edit.

public TextRange UpdateForEdit(int codePointIndex, int oldLength, int newLength);

Parameters

int codePointIndex

The position of the edit

int oldLength

The length of text deleted

int newLength

The length of text inserted

Returns

TextRange

An updated text range