Skip to main content

TcxCustomPropertiesStore.StorageType Property

Specifies the type of storage used for saving/restoring components’ properties.

Declaration

property StorageType: TcxStorageType read; write; default stIniFile;

Property Value

Type Default
TcxStorageType stIniFile

Remarks

Use the StorageType property to specify the type of storage for saving/restoring components’ properties. All components, selected for saving/restoring, can be accessed by the Components collection. Properties to save/restore are listed by the Properties property for each item within this collection.

This property value affects the StorageName property value interpretation.

StorageType

StorageName Interpretation

stIniFile

The path and the name of the INI file.

stRegistry

The registry key name. By default, this name specifies a key relative to the HKEY_CURRENT_USER root key. However, you can select another root key by adding a corresponding prefix to the name. All the supported prefixes and their associated root keys are listed below:

  • HKCR. The HKEY_CLASSES_ROOT root key;

  • HKCU. The HKEY_CURRENT_USER root key;

  • HKLM. The HKEY_LOCAL_MACHINE root key;

  • HKU. The HKEY_USERS root key;

  • HKPD. The HKEY_PERFORMANCE_DATA root key;

  • HKCC. The HKEY_CURRENT_CONFIG root key;

  • HKDD. The HKEY_DYN_DATA root key.

For example, “HKCR\Software\cxPropertiesStore1“ passed as the StorageName property value designates the HKEY_CLASSES_ROOT\Software\cxPropertiesStore1 registry key.

Note

Due to the registry redirection used by 64-bit Windows, resulting physical locations of certain registry keys may differ from the specified names. Refer to the “Registry Redirector” MSDN article at https://docs.microsoft.com/windows/desktop/WinProg64/registry-redirector to learn more.

stStream

The StorageName property is not in effect. Use the StorageStream property instead to specify a stream for storing/restoring components’ properties.

The default value of the StorageType property is stIniFile.

See Also