Vcl.Graphics.TFontRecall.Create

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

constructor Create(AFont: TFont);

C++

__fastcall TFontRecall(TFont* AFont);

プロパティ

種類 可視性 ソース ユニット
constructor public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TFontRecall

説明

TFontRecall オブジェクトのインスタンスを作成します。

Create メソッドを呼び出すと,実行時にフォントリコールオブジェクトをインスタンス化できます。Create は,AFont で指定された TFont オブジェクトの現在のプロパティを保存します。これが Reference プロパティの値になります。

その後,Store メソッドを呼び出すと AFont のプロパティのスナップショットが保存され,コンストラクタによって保存された値と置き換えられます。TFontRecall インスタンスを破棄すると,最も新しく保存されたプロパティが AFont に割り当てられ,以前の状態に戻ります。

関連項目