ControlExtensions.Item method (1 of 4)
Adds a semantic command item using command presentation metadata.
public static ContextMenu Item(this ContextMenu menu, Command command)| parameter | description |
|---|---|
| menu | Target context menu. |
| command | Semantic command. |
Return Value
Section titled “Return Value”The context menu for chaining.
See Also
Section titled “See Also”- class ContextMenu
- class Command
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.Item method (2 of 4)
Section titled “ControlExtensions.Item method (2 of 4)”Adds a non-executable presentation item.
public static ContextMenu Item(this ContextMenu menu, string text, bool isEnabled = true)See Also
Section titled “See Also”- class ContextMenu
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.Item method (3 of 4)
Section titled “ControlExtensions.Item method (3 of 4)”Adds a semantic command item.
public static ContextMenu Item(this ContextMenu menu, string text, Command command)| parameter | description |
|---|---|
| menu | Target context menu. |
| text | Item text. |
| command | Semantic command. |
Return Value
Section titled “Return Value”The context menu for chaining.
See Also
Section titled “See Also”- class ContextMenu
- class Command
- class ControlExtensions
- namespace Aprillz.MewUI.Controls
ControlExtensions.Item method (4 of 4)
Section titled “ControlExtensions.Item method (4 of 4)”Adds a command item that passes data as the invocation argument, so several items can share one command and differ only in the value they pass.
public static ContextMenu Item(this ContextMenu menu, string text, Command command, object? data)See Also
Section titled “See Also”- class ContextMenu
- class Command
- class ControlExtensions
- namespace Aprillz.MewUI.Controls