Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomImageSlider.ItemIndex Property

Specifies the image that is shown in the slider control.

#Declaration

Delphi
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.

See Also