Show: Delphi C++
Display Preferences

FMX.Ani.TAnimator.AnimateFloat

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure AnimateFloat(const Target: TFmxObject; const APropertyName: string; const NewValue: Single; Duration: Single = 0.2;  AType: TAnimationType = TAnimationType.In; AInterpolation: TInterpolationType = TInterpolationType.Linear);

C++

__classmethod void __fastcall AnimateFloat(Fmx::Types::TFmxObject* const Target, const System::UnicodeString APropertyName, const float NewValue, float Duration = 2.000000E-01f, Fmx::Types::TAnimationType AType = (Fmx::Types::TAnimationType)(0x0), Fmx::Types::TInterpolationType AInterpolation = (Fmx::Types::TInterpolationType)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Ani.pas
FMX.Ani.hpp
FMX.Ani TAnimator

Description

Creates and runs a TFloatAnimation object.

AnimateFloat creates a TFloatAnimation and makes its parent the TFmxObject object specified by Target.

Sets the PropertyName property of this float animation to the string provided in the APropertyName parameter. This string must be the name of one of the parent's properties that is of type Float. Use dot notation to reference nested properties. Examples: 'Opacity' and 'Position.X'

Sets the StopValue property of this float animation to the short integer provided in the NewValue parameter.

Sets the Duration property of this float animation to the integer provided in the Duration parameter. Duration represents the number of seconds in the transition from the current value of the PropertyName property to the value of the StopValue property of this float animation.

Sets the AnimationType property of this float animation to the TAnimationType provided in the AType parameter.

Sets the Interpolation property of this float animation to the TInterpolationType provided in the AInterpolation parameter.

Sets the StartFromCurrent property of this float animation to True.

Calls the Start to start the animation. The property is animated from its current value to the StopValue over the Duration time.

Note: If this object is not Visible at the moment this method is called, no animation runs: the animation is created, but does not execute.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance