RichTextKit v0.4

FontRun.GetXCoordOfCodePointIndex Method

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

Get the x-coord of a code point

public float GetXCoordOfCodePointIndex(int codePointIndex);


For LTR runs this will be the x-coordinate to the left, or RTL runs it will be the x-coordinate to the right.


int codePointIndex

The code point index (relative to the entire text block)



The x-coord relative to the entire text block

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

Or, find me on Twitter: @toptensoftware.