Show / Hide Table of Contents

Method popupMenu.AddRadio


Overload

Adds menu item to be used as a radio button in a group of such items.

public PMItem AddRadio(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 an unchecked radio item, its PMItem.IsChecked state becomes true; IsChecked of other group items become false.