TdxWheelPicker.ItemIndexes Property
Specifies which wheel items are selected.
Declaration
property ItemIndexes[AIndex: Integer]: Integer read; write;
Property Value
Type |
---|
Integer |
Remarks
This property references a selected wheel item using its zero-based index within a wheel’s Items collection. To access items on a specific wheel, pass the wheel’s zero-based index (which matches its index within the wheel picker editor’s Properties.Wheels collection) as the AIndex parameter to the ItemIndexes property.
The following code shows how to select the third item on the first wheel using the ItemIndexes property.
<dxWheelPicker>.ItemIndexes[0] := 2;
At design time, the ItemIndexes property provides a designer called “Item indexes editor”, which allows you to select wheel items by spinning their wheels using scrolling and arrow key clicks. To invoke the designer, navigate to the property within the Object Inspector and click the ellipsis button next to the property name.
In the designer, spin the wheels in order to select required wheel items. Click OK to confirm the selection and update the editor’s display value. Click Cancel to discard any changes made to the selection.
At runtime, the EditValue property value is updated based on the display value to return an array of the zero-based indexes of selected wheel items.