TextSelectionState

Class

Source offsets are UTF-16 boundaries; pointer coordinates are display cells.

Namespace: RazorConsole.Core.Input
Assembly: RazorConsole.Core

Definition

public sealed class TextSelectionState

Constructors

1
NameTypeDescription
TextSelectionState()Constructor—

Properties

8
NameTypeDescription
Common
TextString—
Other
AnchorInt32—
CursorInt32—
DraggingBoolean—
OffsetInt32—
SelectionString—
SelectionEndInt32—
SelectionStartInt32—

Methods

12
NameTypeDescription
Backspace()Method—
Begin(int, int, bool)()Method—
CellWidth(string)()Int32—
ClearSelection()Method—
Delete()Method—
End()Method—
Extend(int)()Method—
Insert(string)()Method—
Move(int, bool)()Method—
PositionAt(TextRow, int)()Int32—
SetText(string)()Method—
Wrap(int, int, bool, Func<int, int>?)()IReadOnlyList<TextRow>—