ImageSlider.SetCurrentImageIndex(Int32) Method
Sets the index of the image currently displayed within the current ImageSlider.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
imageIndex | Int32 | An Int32 value that is the index of the image to be displayed. |
Remarks
The SetCurrentImageIndex method allows you to display an image that occupies a specific position within the ImageSlider.Images collection. Changing the currently displayed image fires the ImageSlider.CurrentImageIndexChanged event.
To get the currently displayed image or its index, use the ImageSlider.CurrentImage property or the ImageSlider.GetCurrentImageIndex method respectively.
See Also