Skip to main content

TdxCustomImageSlider.CanGoToNextImage Method

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

Declaration

function CanGoToNextImage: Boolean; virtual;

Returns

Type
Boolean

Remarks

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

You can call the GoToNextImage method to slide the next image into view. This method succeeds only if the CanGoToNextImage function returns True.

See Also