Vcl.Graphics.TPenRecall.Create
Delphi
constructor Create(APen: TPen);
C++
__fastcall TPenRecall(TPen* APen);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TPenRecall |
Description
Instantiates a TPenRecall object.
Call Create to instantiate a pen recall object at runtime. Create saves the current properties of the TPen object specified by APen, which becomes the value of the Reference property.
Subsequent calls to the Store method take snapshots of the properties of APen and save them, replacing the values saved by this constructor. When you destroy the TPenRecall instance, the most recently-saved properties are assigned to APen, restoring it to a previous state.