PeachDrawing.Text

PeachDrawing.Text.Layout.ParagraphLayout

ParagraphLayout.CaretRect(TextPosition) Method

Finds where a caret at a position is drawn.

public System.Drawing.RectangleF CaretRect(PeachDrawing.Text.Layout.TextPosition position);

Parameters

position TextPosition

A position in the text.

Returns

System.Drawing.RectangleF
A rectangle of no width the height of the line, at the caret’s place.

Exceptions

System.ArgumentOutOfRangeException
The position is outside the text.