Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Util.Controls.MenuRadioGroup<T>

Summary

Keeps track of a group of menu items (specifically, MenuRadioItem<T>) which are intended to act like a radio-button group, and where each menu item is associated with a specific value, usually from an enum type.

Generic type parameters

T
  • Must derive from: System.ValueType.
  • Must have a default constructor.
  • Must be a non-nullable value type.
The type of the value associated with each menu item.

Constructors

Creates a new instance of MenuRadioGroup<T>.

Instance methods

voidAdds a menu item to the group.
MenuRadioItem<T>Returns the menu item associated with the specified value, or null if no menu item in the group is associated with the specified value.
void
SetValue(T value)
Causes the menu item with the specified value to become the selected one. If no menu item in the group is associated with the specified value, nothing happens. If more than one menu item in the group is associated with the same value, the behaviour is undefined.

Instance properties

MenuRadioItem<T>[]Returns an array of all the menu items contained in this group.
TReturns the value associated with the currently-selected menu item.

Events

EventHandlerTriggers whenever a different menu item becomes the selected one.