Skip to content

UIRadioButtonGroup Class

Definition

Namespace: Brine2D.UI

Manages a group of radio buttons to ensure only one is selected at a time.

C#
public class UIRadioButtonGroup

Inheritance System.Object → UIRadioButtonGroup

Properties
SelectedButton Currently selected button in the group \(null if none selected\).
SelectedIndex Index of the selected button \(\-1 if none selected\).
Methods
GetButtons() Gets all buttons in this group.
RegisterButton\(UIRadioButton\) Registers a radio button with this group.
SelectButton\(UIRadioButton\) Selects a button in the group \(deselects all others\).
UnregisterButton\(UIRadioButton\) Unregisters a radio button from this group.
Events
OnSelectionChanged Event fired when selection changes.