Show / Hide Table of Contents

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 "Te&xt\t Hotkey\0 Tooltip"; more info: popupMenu.

check  (bool)

Checked state.

click  (Action<PMItem>)

Action executed on click.

disable  (bool)

Disabled state.

image  (MTImage)

Item image. Read here: MTBase.

l_  (int)

Caller info parameter

f_  (string)

Caller info parameter

Returns
PMItem

Remarks

When clicked, PMItem.IsChecked state is changed.