RichTextKit v0.4

FontRun.LeadingWidth Method

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

Calculates the leading width of all character from the start of the run (either the left or right depending on run direction) to the specified code point

public float LeadingWidth(int codePoint);

Parameters

int codePoint

The code point index to measure to

Returns

float

The distance from the start to the specified code point