RichTextKit v0.4

CaretPosition Struct

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit

Stores state information about a caret position

public struct CaretPosition


CaretPosition → ValueTypeobject


The caret position is defined primarily by it's code point index however there are other attributes that can affect where it's displayed and how it moves. This structure encapsulates all the information about the caret required to position and move it correctly.


CaretPosition(int, bool)

Initializes a CaretPosition



True to display the caret at the end of the previous line rather than the start of the following line when the code point index is exactly on a line break.


The code point index of the caret insertion point

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

Or, find me on Twitter: @toptensoftware.