Table of Contents

Class RadioGroup

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Displays a group of labels with an idicator of which one is selected.

public class RadioGroup : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IDesignable, IOrientation
Inheritance
RadioGroup
Implements
Inherited Members

Constructors

RadioGroup()

Initializes a new instance of the RadioGroup class.

Properties

Cursor

Gets or sets the RadioLabels index for the cursor. The cursor may or may not be the selected RadioItem.

DoubleClickAccepts

Gets or sets whether double clicking on a Radio Item will cause the Accepting event to be raised.

HorizontalSpace

Gets or sets the horizontal space for this RadioGroup if the Orientation is Horizontal

Orientation

Gets or sets the Orientation for this RadioGroup. The default is Vertical.

RadioLabels

The radio labels to display. A HotKey key binding will be added for each label enabling the user to select and/or focus the radio label using the keyboard. See HotKey for details on how HotKeys work.

SelectedItem

Gets or sets the selected radio label index.

Methods

EnableForDesign()

Causes the View to enable design-time mode. This typically means that the view will load demo data and be configured to allow for design-time manipulation.

OnDrawingContent()

Called when the View's content is to be drawn. The default implementation does nothing.

OnOrientationChanged(Orientation)

Called when Orientation has changed.

OnSelectedItemChanged(int, int)

Called whenever the current selected item changes. Invokes the SelectedItemChanged event.

PositionCursor()

Positions the cursor in the right position based on the currently focused view in the chain.

Events

OrientationChanged

Raised when Orientation has changed.

OrientationChanging

Raised when Orientation is changing. Can be cancelled.

SelectedItemChanged

Raised when the selected radio label has changed.