Vcl.ExtCtrls.TRadioGroup.ItemIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ItemIndex;

C++

__property ItemIndex = {default=-1};

Properties

Type Visibility Source Unit Parent
property published
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TRadioGroup

Description

Indicates which radio button in the group is currently selected.

Vcl.ExtCtrls.TRadioGroup.ItemIndex inherits from Vcl.ExtCtrls.TCustomRadioGroup.ItemIndex. All content below this line refers to Vcl.ExtCtrls.TCustomRadioGroup.ItemIndex.

Indicates which radio button in the group is currently selected.

ItemIndex holds the index of the selected radio button in the Items list. (The first button is 0.) The value of ItemIndex changes at runtime as the user selects radio buttons. If you want one of the buttons to appear selected when the application starts, assign that button to ItemIndex at design time; otherwise, leave ItemIndex set to the default value of -1, which means that no button is selected.

See Also

Code Examples