Show: Delphi C++
Display Preferences

FMX.Types.TFmxObject.AnimateFloat

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

void __fastcall AnimateFloat _DEPRECATED_ATTRIBUTE1("Use FMX.Ani.TAnimator instead") (const System::UnicodeString APropertyName, const float NewValue, float Duration = 2.000000E-01f, TAnimationType AType = (TAnimationType)(0x0), TInterpolationType AInterpolation = (TInterpolationType)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TFmxObject

Description

Warning: AnimateFloat is deprecated. Please use Ani.TAnimator.

Creates and runs a TFloatAnimation for this object (self).

AnimateFloat creates a TFloatAnimation and makes its parent this TFmxObject (self).

Sets the PropertyName property of this float animation to be 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 be the short integer provided by the NewValue parameter.

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

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

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

Sets the StartFromCurrent property of this float animation to be True.

Calls the Start to start the animation. The property will be 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

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance