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

ImageSlider.GetCurrentImageIndex() Method

OBSOLETE

Use the CurrentImageIndex property instead.

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

#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