[Overview][Types][Classes][Index] |
Restores property values from the storage mechanism for the container.
Source position: propertystorage.pas line 135
protected procedure TCustomPropertyStorage.RestoreProperties; virtual; |
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. |
|
Builds a list with the object(s) and properties stored in the container. |
|
|
Updates the specified list to include a reference to the object instance for each of the properties in the storage container. |
|
|
Ensures that the storage mechanism for the container is available. |
|
|
Frees resources allocated for the underlying storage mechanism. |
|
|
Saves property values to the storage mechanism for the container. |
|
Version 4.0 | Generated 2025-05-03 | Home |