TextCommand
A command of the text context menu: its label, when it applies, and what it does to the field that presents it. The field lists its commands in Commands; the system menu shows the applicable ones in that order, and the Unity-UI menu shows each on the item bound to it. Derive from it and implement Execute for a command of your own.
Remarks
IsApplicable is asked every time the menu is presented or re-anchored, and again when the user picks the command from a menu, a TextCommandButton or a shortcut; Execute runs on the main thread only while the command applies, against the field's state at that moment.Derived Types(11)
Types that inherit from TextCommand.
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.
Whether command is this command, as a menu item bound to this command matches the field's (Command): by default, a command of this type or one derived from it. The title plays no part; a command whose settings decide its effect compares them too, as a style toggle compares its style.
