[Overview][Types][Classes][Index] | Reference for unit 'PropertyStorage' (#lcl)

# TCustomPropertyStorage.RestoreProperties

Restores property values from the storage mechanism for the container.

## Declaration

Source position: propertystorage.pas line 135

`protected procedure TCustomPropertyStorage.RestoreProperties; virtual;`

## Description

RestoreProperties is a method used to load property values stored in the container, and apply the values to the origin components / persistent object instances. Properties names and the corresponding object instances are loaded using the GetPropertyList and FinishPropertyList methods.

A temporary TPropsStorage instance is created and configured to use RootSection and DoReadString from the class instance. The LoadObjectsProps method is called to get the property values and apply them to the object instances for the property list.

Remark: | Some of the methods called in RestoreProperties are declared as abstract virtual methods in TCustomPropertyStorage, like: GetPropertyList, FinishPropertyList, and DoReadString. They must be implemented in a descendent class to use the specific storage format for its container.

## See also

TCustomPropertyStorage.GetPropertyList |  | Builds a list with the object(s) and properties stored in the container.
TCustomPropertyStorage.FinishPropertyList |  | Updates the specified list to include a reference to the object instance for each of the properties in the storage container.
TCustomPropertyStorage.StorageNeeded |  | Ensures that the storage mechanism for the container is available.
TCustomPropertyStorage.FreeStorage |  | Frees resources allocated for the underlying storage mechanism.
TCustomPropertyStorage.SaveProperties |  | Saves property values to the storage mechanism for the container.
TPropsStorage