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

# TStoredValues.Storage

Storage container used to Save and Restore the Values for the collection Items.

## Declaration

Source position: propertystorage.pas line 81

`public property TStoredValues.Storage : TCustomPropertyStorage read FStorage write FStorage;`

## Description

Storage is a TCustomPropertyStorage property with the storage container used to save and restore the values for the Items in the collection. Storage contains the value passed as the Owner argument to the Create constructor, or Nil when the parameter is not derived from TCustomPropertyStorage.

TCustomPropertyStorage is an ancestor class which contains abstract virtual methods; normally, one of the descendent classes which implement a specific storage mechanism is used as the Owner. For example: TControlPropertyStorage, TFormPropertyStorage, TIniPropStorage, TJSONPropStorage, and TXMLPropStorage.

Storage is used when the SaveValues or RestoreValues method is called. The TStoredValue instances in Items access the property when they call their Save or Restore methods.