RichTextKit v0.4

CaretInfo Struct

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

Used to return caret positioning information from the TextBlock.GetCaretInfo(CaretPosition) method.

public struct CaretInfo

Inheritance

CaretInfo → ValueTypeobject

Fields

CaretRectangle

A rectangle describing where the caret should be drawn, relative to the top-left corner of the text block. The caret should be drawn from the returned rectangle's top-right to bottom-left.

CaretXCoord

The X-coordinate where the caret should be displayed for this code point.

CodePointIndex

Returns the index of the code point that this caret info refers to.

LineIndex

Returns the line number that contains the caret

None

Place holder caret info structure for no caret

Properties

IsNone

Checks if this caret info represents a caret position of none, or not found