FMX.ActnList.TCustomAction.DefineProperties
Delphi
procedure DefineProperties(Filer: TFiler); override;
C++
virtual void __fastcall DefineProperties(System::Classes::TFiler* Filer);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | FMX.ActnList.pas FMX.ActnList.hpp |
FMX.ActnList | TCustomAction |
Description
Implements a method for storing an action object's unpublished data on a stream such as a form file.
By default, writing an object to a stream writes the values of all its published properties, and reading the object in reads those values and assigns them to the object's properties. Objects can also specify methods that read and write data other than published properties by overriding the DefineProperties method:
- TCustomAction overrides the DefineProperties method, defined in TComponent, to define storing of the Caption and ImageIndex properties.
- The System.Classes.TComponent.DefineProperties method, defined in TComponent, defines methods to store the "fake" Top and Left properties. These are defined so that action components that are not controls can be manipulated at design time. However, the Top and Left properties are hidden, that is, they are not published, because only controls appear at run time.
DefineProperties is called automatically as part of the component streaming system; do not call it directly.