Table of Contents

Class RadioGroup

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Displays a group of labels each with a selected indicator. Only one of those can be selected at a given time.

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

Constructors

RadioGroup()

Initializes a new instance of the RadioGroup class using Computed layout.

RadioGroup(ustring[], int)

Initializes a new instance of the RadioGroup class using Computed layout.

RadioGroup(int, int, ustring[], int)

Initializes a new instance of the RadioGroup class using Absolute layout. The View frame is computed from the provided radio labels.

RadioGroup(Rect, ustring[], int)

Initializes a new instance of the RadioGroup class using Absolute layout.

Properties

DisplayMode

Gets or sets the DisplayModeLayout for this RadioGroup.

HorizontalSpace

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

RadioLabels

The radio labels to display

SelectedItem

The currently selected item from the list of radio labels

Methods

MouseEvent(MouseEvent)

Method invoked when a mouse event is generated

OnEnter(View)

Method invoked when a view gets focus.

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.

ProcessColdKey(KeyEvent)

This method can be overwritten by views that want to provide accelerator functionality (Alt-key for example), but without interefering with normal ProcessKey behavior.

ProcessKey(KeyEvent)

If the view is focused, gives the view a chance to process the keystroke.

Redraw(Rect)

Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.

Refresh()

Allow to invoke the SelectedItemChanged after their creation.

Events

SelectedItemChanged

Invoked when the selected radio label has changed.