FMX.Ani.TAnimator.AnimateFloat
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));
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | FMX.Ani.pas FMX.Ani.hpp |
FMX.Ani | TAnimator |
説明
TFloatAnimation オブジェクトを作成および実行します。
AnimateFloat は、TFloatAnimation を作成し、その親を Target
で指定された TFmxObject オブジェクトにします。
このフロート アニメーションの PropertyName プロパティを、APropertyName
パラメータで渡された文字列に設定します。この文字列は、Float
型である、親プロパティのいずれかの名前でなければなりません。入れ子プロパティを参照するには、ドット(.)表記を使用してください。例: 'Opacity'
と 'Position.X'
このフロート アニメーションの StopValue プロパティを、NewValue
パラメータで渡された short 整数に設定します。
このフロート アニメーションの Duration プロパティを、Duration
パラメータで渡された整数に設定します。 Duration は、PropertyName プロパティの現在の値から、このフロート アニメーションの StopValue プロパティの値までの遷移にかかる秒数を表します。
このフロート アニメーションの AnimationType プロパティを、AType
パラメータで渡された TAnimationType に設定します。
このフロート アニメーションの Interpolation プロパティを、AInterpolation
パラメータで渡された TInterpolationType に設定します。
このフロート アニメーションの StartFromCurrent プロパティを True に設定します。
Start を呼び出すと、アニメーションを開始します。このプロパティは、現在の値から StopValue まで、Duration の間、アニメーションを行います。
メモ: このメソッドが呼び出された時点でこのオブジェクトが Visible でなかった場合、アニメーションは実行されません: アニメーションは作成されますが、実行されません。