RichTextKit v0.4

TextBlock.GetCaretInfo Method

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

Calculates useful information for displaying a caret

public CaretInfo GetCaretInfo(CaretPosition position);


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)


CaretPosition position

The caret position



A CaretInfo struct

Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.