TCustomPropertyStorage.FinishPropertyList procedure
Updates the specified list to include a reference to the object instance for each of the properties in the storage container.
Declaration
procedure FinishPropertyList(List: TStrings); virtualArguments
List | TStringList instance with the component and property names examined in the method. |
Description
FinishPropertyList ensures that a valid object reference exists
for each of the property names loaded into the
List argument using
the
GetPropertyList method. It ensures that the Objects property
in List contains a valid reference to a
TComponent instance for
each of the component and property names in List.
Root identifies the initial component / object instance examined in the method. property named and values in List are relative to the component hierarchy starting at Root.
The ParseStoredItem routine from the RTL rttiutils
unit is called to parse each of the values in the Names property in List into
separate component and property names. If the value cannot be parsed into
valid component and property names, the entry in List is deleted. If the
component name is not the same as the value for Root, or one of its children,
the value is also deleted from List.
The FindComponent method is called to get the object instance with the property value for a given component name. The references is stored in the Objects property for the corresponding component / property name.
FinishPropertyList is used in the implementation of the
SaveProperties and RestoreProperties methods.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
