Class CadPluginMenuItem
An item of a menu a plugin adds to, as the presenter's CadExtensionMenuItem is for an extension: a line that
runs a callback, a submenu, or a separator, ticked or not, on or off.
public sealed class CadPluginMenuItem
- Inheritance
-
CadPluginMenuItem
- Inherited Members
Constructors
- CadPluginMenuItem(string, Action<CadPluginContext>, bool, bool?)
Makes an item that runs a callback.
- CadPluginMenuItem(string, IReadOnlyList<CadPluginMenuItem>, bool, bool?)
Makes an item that opens a submenu.
Properties
- IsChecked
Gets the tick: null for none, true for a ticked item, false for a tick box not ticked.
- IsEnabled
Gets whether the item can be chosen.
- IsSeparator
Gets whether the item is a separator line.
- Items
Gets the items of a submenu; empty for the others.
- Run
Gets the callback; null for a submenu and a separator.
- Text
Gets the text; empty for a separator.
Methods
- Separator()
Makes a separator line.