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

TStoredValue.OnRestore

Event handler signalled when the collection item value is restored.

Declaration

Source position: propertystorage.pas line 61

published property TStoredValue.OnRestore : TStoredValueEvent
  read FOnRestore
  write FOnRestore;

Description

OnRestore is a TStoredValueEvent property with the event handler signalled when the Value for the collection item is restored from the storage container for the collection. Arguments passed to the event handler identify the collection item and the value for the collection item. The Value parameter is a variable argument and can be modified in the event handler as needed.

OnRestore is signalled (when assigned) from the Restore method, and occurs after the collection item value has been retrieved from the collection storage and XOR decoded (when needed). It has not been stored in the Value property when the event handler is signalled.

Use the OnSave event handler to perform actions needed when the Value is saved to the storage container for the collection.

See also

TStoredValue.Value

  

The value of the property (as a String or a Variant type).

TStoredValue.KeyString

  

XOR encoding key, empty for encoding is not used.

TStoredValue.StoredValues

  

The collection containing the collection item.

TStoredValue.Restore

  

Loads the value for the collection item from the storage container for the collection.

TStoredValue.OnSave

  

Event handler signalled when the collection item value is saved.

TStoredValue.Save

  

Saves the value for the collection item to the storage container for the collection.


Version 4.0 Generated 2025-05-03 Home