RAD Studio VCL Reference
TAnimate.Repetitions Property

Specifies the number of times to repeat the sequence of frames.

property Repetitions: Integer;
__property int Repetitions;

Set Repetitions to specify the number of times the sequence of frames in the animation is repeated when the Active property is set to true. After the sequence is repeated by the specified number of times, the value of Active becomes false again. 

To show the sequence a single time, set Repetitions to 1. Set Repetitions to 0 to indicate that the sequence of frames should repeat indefinitely. When Repetitions is 0, use the Active property or Stop method to interrupt the animation. 

The Play method overrides Repetitions with the value passed as the Count parameter. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!