ImageSlider.GetCurrentImageIndex() Method

Obsolete. Gets the index of the currently displayed image within the current ImageSlider.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Obsolete("Use the CurrentImageIndex property instead.")]
public int GetCurrentImageIndex()
<Obsolete("Use the CurrentImageIndex property instead.")>
Public Function GetCurrentImageIndex As Integer

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