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

# TCustomPropertyStorage.FinishPropertyList

Updates the specified list to include a reference to the object instance for each of the properties in the storage container.

## Declaration

Source position: propertystorage.pas line 137

`protected procedure TCustomPropertyStorage.FinishPropertyList(`
`List: TStrings`
`); virtual;`

## Arguments

`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

TCustomPropertyStorage.SaveProperties |  | Saves property values to the storage mechanism for the container.
TCustomPropertyStorage.RestoreProperties |  | Restores property values from the storage mechanism for the container.
TCustomPropertyStorage.GetPropertyList |  | Builds a list with the object(s) and properties stored in the container.