Docsv3.20.2
Back to API Reference
Struct

TextMenuEntry

sealed

One entry of a presented text context menu. A TextContextMenu receives the entries in the field's order and reports an invoked one by its index.

public TextCommandSource Source{ get }

The command that contributed the entry — what a menu matches to show the command on an item of its own.

public string Title{ get }

Label of the entry, in the current language.

public Nullable<StandardEditCommand> Standard{ get }

The standard command the entry runs, which a system menu shows as its own localized item; for every other command and for a standard command given a title of its own.

public bool KeepsMenu{ get }

Whether invoking the entry leaves the menu up, over the selection its command leaves.

public bool IsActive{ get }

Whether the entry's effect is on at the selection (IsActive) — a Toggle presenting the entry shows it.

public bool IsEnabled{ get }

Whether the entry's command applies to the field (IsApplicable). A menu shows a disabled entry disabled or not at all and never invokes it; the system menus leave it out.