Skip to main content

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