Method popupMenu.AddCheck
Overload
Adds menu item to be used as a checkbox.
public PMItem AddCheck(string text, bool check = false, Action<PMItem> click = null, bool disable = false, MTImage image = default, int l_ = 0, string f_ = null)
Parameters
|
text (string)
Item text. Can include hotkey, tooltip and underlined character, like |
|
check (bool)
Checked state. |
|
click (Action<PMItem>)
Action executed on click. |
|
disable (bool)
Disabled state. |
|
image (MTImage)
Item image. Read here: MTBase. |
| l_ (int) |
| f_ (string) |
Returns
Remarks
When clicked, PMItem.IsChecked state is changed.