Struct CaretPosition
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
GraphemeIndex
Gets the zero-based grapheme index in the original text.
public int GraphemeIndex { get; }
Property Value
HasSecondary
Gets a value indicating whether a second visual caret position is available.
public bool HasSecondary { get; }
Property Value
LineIndex
Gets the zero-based line index.
public int LineIndex { get; }
Property Value
SecondaryEnd
Gets the secondary caret end point in pixel units.
public Vector2 SecondaryEnd { get; }
Property Value
SecondaryStart
Gets the secondary caret start point in pixel units.
public Vector2 SecondaryStart { get; }
Property Value
Start
Gets the caret start point in pixel units.
public Vector2 Start { get; }
Property Value
StringIndex
Gets the zero-based UTF-16 code unit index in the original text.
public int StringIndex { get; }