Skip to main content

TcxCustomRadioGroup.ItemIndex Property

Indicates which radio button in the group is currently selected.

Declaration

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

Property Value

Type
Integer

Remarks

The ItemIndex property contains the zero-based index of the selected radio button. The radio group item representing the selected button can be obtained by this index using the Items property.

The value of ItemIndex property 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 index to the ItemIndex property at design time; otherwise, leave the ItemIndex property set to the default value of -1, which means that no button is selected.

The default value of the ItemIndex property is -1.

See Also