Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomSmartImage.AnimationLoopIndex Property

Specifies the number of animation sequence runs played by the Smart Image container.

#Declaration

Delphi
property AnimationLoopIndex: Integer read; write;

#Property Value

Type
Integer

#Remarks

You can use this property to:

  • Track the number of played animation loops when the multiple-run animation mode is active;

  • Change the number of remaining animation loops.

When the Animation property is set to True and the multiple-run animation mode is active, the AnimationLoopIndex property value is compared to the AnimationLoopCount property value at the end of each animation sequence. If the current animation loop index is less than the total number of animation loops, the AnimationLoopIndex property value is incremented by 1 and the animation restarts from the first frame.

The AnimationLoopIndex property is in effect only if the following conditions are met:

  • The stored image is animated;

  • The AnimationLoop property is set to bDefault (i.e., the multiple-run animation mode is active);

  • The AnimationLoopCount property value is higher than 0.

See Also