System.Classes.TPersistent.DefineProperties

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DefineProperties(Filer: TFiler); virtual;

C++

virtual void __fastcall DefineProperties(TFiler* Filer);

Properties

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

Description

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

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:

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

See Also