Skip to main content

TdxCustomImageSlider.GoToImage(Integer) Method

Slides a specified image into view from the image collection, with animation.

Declaration

procedure GoToImage(ATargetItemIndex: Integer); virtual;

Parameters

Name Type
ATargetItemIndex Integer

Remarks

This method slides an image with the ATargetItemIndex index into view, updates the ItemIndex property with this index, and fires the OnChange event.

Call the GoToNextImage/GoToPrevImage method to bring the next or previous image into view (relative to the currently displayed image). Use the AnimationTime and TransitionEffect properties to control the transition effect used to animate image sliding and adjust its duration.

See Also