RichTextKit v0.3

TextBlock.CharacterToCodePointIndex Method

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

Converts a character index to a code point index

public int CharacterToCodePointIndex(int characterIndex);

Remarks

This method only works when the text buffer was built using the AddText(string) method

Parameters

int characterIndex

The character index to convert

Returns

int

The converted index

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

Or, find me on Twitter: @toptensoftware.