Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxPropertiesStoreComponent.RestoreFromRegistry(string) Method

Restores the current component’s properties from the registry.

#Declaration

Delphi
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