RichTextKit v0.1

CaretInfo Struct

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

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

public struct CaretInfo

Inheritance

CaretInfo → ValueTypeobject

Fields

CodePointIndex

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

FontRun

The font run that contains the code point.

NextCodePointIndex

The code point index of the next cluster.

PreviousCodePointIndex

The code point index of the previous cluster.

StyleRun

The style run that contains the code point.

Properties

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.

CodePointCount

The number of code points in this cluster.