Docsv3.31.0
Back to API Reference
Class

SelectAllCommand

Inherits:TextCommand

Selects the whole text. Applies while the text is not empty and not already selected whole; the menu stays up over the new selection.

public bool KeepsMenu{ get }

Whether invoking the command leaves the menu up, presented again over the selection the command leaves, as select-all does on the touch platforms. False by default: a command takes the menu down, and on Android a touch menu's selection with it, collapsed at its focus as Android's text view leaves it.

public override bool IsApplicable(in TextCommandContext context)

Whether the command applies to the field's current state. A menu hides or disables a command that does not apply, and a command runs only while it applies.

public override void Execute(in TextCommandContext context)

Runs the command against the field's current state, to which it applies (IsApplicable).