Skip to main content

TdxCustomImageSlider.CanGoToPrevImage Method

Determines if the slider control can bring the previous image into view from the image collection (relative to the currently displayed image).

Declaration

function CanGoToPrevImage: Boolean; virtual;

Returns

Type
Boolean

Remarks

This function returns True if the ItemIndex property value can be decremented by 1 in order to bring the previous image from the collection into view. This function is used internally to determine the visibility of the corresponding slider button.

You can call the GoToPrevImage method to slide the previous image into view. This method succeeds only if the CanGoToPrevImage function returns True.

See Also