RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLDocument.DefineProperties Method

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

Pascal
procedure DefineProperties(Filer: TFiler); override;
C++
virtual __fastcall DefineProperties(TFiler Filer);

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; descendant 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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!