ImageSlider.SetCurrentImageIndex(Int32) Method
In This Article
Sets the index of the image currently displayed within the current ImageSlider.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
image |
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.CurrentImageIndex method respectively.
See Also