Table of Contents

Constructor RadioGroup

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

RadioGroup()

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

public RadioGroup()

RadioGroup(ustring[], int)

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

public RadioGroup(ustring[] radioLabels, int selected = 0)

Parameters

radioLabels ustring[]

The radio labels; an array of strings that can contain hotkeys using an underscore before the letter.

selected int

The index of the item to be selected, the value is clamped to the number of items.

RadioGroup(Rect, ustring[], int)

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

public RadioGroup(Rect rect, ustring[] radioLabels, int selected = 0)

Parameters

rect Rect

Boundaries for the radio group.

radioLabels ustring[]

The radio labels; an array of strings that can contain hotkeys using an underscore before the letter.

selected int

The index of item to be selected, the value is clamped to the number of items.

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.

public RadioGroup(int x, int y, ustring[] radioLabels, int selected = 0)

Parameters

x int

The x coordinate.

y int

The y coordinate.

radioLabels ustring[]

The radio labels; an array of strings that can contain hotkeys using an underscore before the letter.

selected int

The item to be selected, the value is clamped to the number of items.