ImageSlider.GetCurrentImageIndex() Method
In This Article
OBSOLETE
Use the Current
Gets the index of the currently displayed image within the current ImageSlider.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Use the CurrentImageIndex property instead.")]
public int GetCurrentImageIndex()
#Returns
Type | Description |
---|---|
Int32 | An Int32 value that is the index of the currently displayed image within the current Image |
#Remarks
The GetCurrentImageIndex method returns the position of the currently displayed image in the ImageSlider‘s ImageSlider.Images collection. You can also get the currently displayed image via the ImageSlider.CurrentImage property.
To display a specific image by its index, use the ImageSlider.SetCurrentImageIndex method.
See Also