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);


int codePointIndex

The position of the edit

int oldLength

The length of text deleted

int newLength

The length of text inserted



An updated text range

Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.