RichTextKit v0.1

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

Remarks

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

Parameters

int codePointIndex

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

Returns

float

The x-coord relative to the entire text block