Skip to main content

TdxCustomSmartImage.AnimationLoopIndex Property

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

Declaration

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