Skip to main content

TcxPropertiesStoreComponent.RestoreFromRegistry(string) Method

Restores the current component’s properties from the registry.

Declaration

procedure RestoreFromRegistry(const AStorageName: string);

Parameters

Name Type
AStorageName string

Remarks

Use this method to restore the properties of the component specified by the Component property from the registry. The properties to restore are specified by the Properties list.

You can call the RestoreFromRegistry method even if the StorageType of the current TcxPropertiesStore instance is not set to stRegistry.

By default, the AStorageName parameter specifies the suffix to the HKEY_CURRENT_USER root key. So, the whole registry key, used as a storage, looks like HKEY_CURRENT_USER\ + the AStorageName parameter value. However, you can explicitly specify a specific root key as a prefix within the AStorageName parameter value to restore data from this root key. Refer to the TcxCustomPropertiesStore.StorageType property description to learn about supported prefixes.

See Also