RichTextKit v0.4

RichString.GetCaretInfo Method

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

Calculates useful information for displaying a caret

public CaretInfo GetCaretInfo(CaretPosition position);

Remarks

When altPosition is true, if the code point index indicates the first code point after a line break, the returned caret position will be the end of the previous line (instead of the start of the next line)

Parameters

CaretPosition position

The caret position

Returns

CaretInfo

A CaretInfo struct