Vcl.ExtCtrls.TCustomRadioGroup.ItemIndex

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

__property int ItemIndex = {read=FItemIndex, write=SetItemIndex, default=-1};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TCustomRadioGroup

Description

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