Vcl.DBCtrls.TDBRadioGroup.ItemIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ItemIndex: Integer read FItemIndex write SetItemIndex default -1;

C++

__property ItemIndex = {default=-1};

Properties

Type Visibility Source Unit Parent
property public
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBRadioGroup

Description

Indicates which radio button in the group is currently selected.

Vcl.DBCtrls.TDBRadioGroup.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