Table of Contents

Struct CaretPosition

Namespace
SixLabors.Fonts
Assembly
SixLabors.Fonts.dll

Represents a caret line in laid-out text.

public readonly struct CaretPosition
Inherited Members

Properties

End

Gets the caret end point in pixel units.

public Vector2 End { get; }

Property Value

Vector2

GraphemeIndex

Gets the zero-based grapheme index in the original text.

public int GraphemeIndex { get; }

Property Value

int

HasSecondary

Gets a value indicating whether a second visual caret position is available.

public bool HasSecondary { get; }

Property Value

bool

LineIndex

Gets the zero-based line index.

public int LineIndex { get; }

Property Value

int

SecondaryEnd

Gets the secondary caret end point in pixel units.

public Vector2 SecondaryEnd { get; }

Property Value

Vector2

SecondaryStart

Gets the secondary caret start point in pixel units.

public Vector2 SecondaryStart { get; }

Property Value

Vector2

Start

Gets the caret start point in pixel units.

public Vector2 Start { get; }

Property Value

Vector2

StringIndex

Gets the zero-based UTF-16 code unit index in the original text.

public int StringIndex { get; }

Property Value

int