Table of Contents

TPropertyList.CreateProperty Method

Adds a new property in the property list.

Remarks

CreateProperty is called automatically by the Update method when the properties are being enumerated and added automatically. You can override this method for custom property creation or to add additional functionality to the create property process. Either APropInfo or APropData parameter must be nil, they are mutually exclusive.

Syntax

Unit: PropertyList

function TPropertyList.CreateProperty(APropInfo: PPropInfo; APropData: TCustomPropData): TProperty; virtual;

Parameters

<-> Parameter Type Description
APropInfo PPropInfo the RTTI PPropInfo of the property. If nil, then you must provide the custom data to create a custom property.
APropData TCustomPropData The TCustomPropData used to create a Custom property.

Returns

The newly created TProperty object.

See also