System.Classes.TComponent.DefineProperties

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DefineProperties(Filer: TFiler); override;

C++

virtual void __fastcall DefineProperties(TFiler* Filer);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
System.Classes.pas
System.Classes.hpp
System.Classes TComponent

Description

Designates methods for storing an object's unpublished data on a stream such as a form file.

TComponent overrides the DefineProperties method defined in TPersistent to define "fake" Top and Left properties. These are defined so that 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 virtual; descendent classes can override it. When overriding DefineProperties, be aware that the Ancestor property of Filer might be set, and that this property can determine whether or not it is appropriate to write properties.

DefineProperties is called automatically as part of the component streaming system; do not call it directly.

See Also