RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TFieldDef.DefineProperties Method

Provides an interface for a method that reads and writes otherwise unpublished data.

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

Descendants of TPersistent override DefineProperties to designate a method for storing the object's unpublished data to 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 properties. Objects can also specify methods that read and write data other than published properties by overriding the DefineProperties method. 

When overriding DefineProperties, consider including some or all of the following: 

A call to the inherited method 

Calls to the filer object's DefineProperty method 

Calls to the filer object's DefineBinaryProperty method 

DefineProperties is virtual, so descendant classes can override it as necessary but are not required to do so. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!