Vcl.Graphics.TFontRecall.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AFont: TFont);

C++

__fastcall TFontRecall(TFont* AFont);

Properties

Type Visibility Source Unit Parent
constructor public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TFontRecall

Description

Instantiates a TFontRecall object.

Call Create to instantiate a font recall object at runtime. Create saves the current properties of the TFont object specified by AFont, which becomes the value of the Reference property.

Subsequent calls to the Store method take snapshots of the properties of AFont and save them, replacing the values saved by this constructor. When you destroy the TFontRecall instance, the most recently-saved properties are assigned to AFont, restoring it to a previous state.

See Also