PeachDrawing.Text

PeachDrawing.Text.Layout.PlacedRun

PlacedRun.GetCaretX(int) Method

Where a caret at a boundary of the run’s text is, measured from the left edge of the layout.

public double GetCaretX(int index);

Parameters

index System.Int32

A UTF-16 offset in the text of the paragraph, from Range’s start to its end.

Returns

System.Double
The distance, in layout units.

Exceptions

System.ArgumentOutOfRangeException
index is outside the run.