TdxCustomImageSlider.ItemIndex Property
Specifies the image that is shown in the slider control.
Declaration
property ItemIndex: Integer read; write;
Property Value
Type |
---|
Integer |
Remarks
Use this property to immediately display an image from the collection assigned to the Images or MultiFrameImage property, without animation. The image is identified by its zero-based index within the collection. -1 set to the ItemIndex property indicates that no image is shown. Once the collection is assigned, the ItemIndex property cannot be set to -1 – the slider control always displays an image from the collection.
End-users can slide images by clicking either the scrollbar or the buttons that appear next to the left and right edges of the control when the mouse pointer hovers over it. Use the ScrollMode property to choose the scroll method available to end-users. You can programmatically slide images with animation by calling the GoToNextImage, GoToPrevImage, and GoToImage methods. The ItemIndex property is updated automatically in response to sliding images, firing the OnChange event as a result.
TouchScreen Support: End-users can slide images with single-finger panning.