Skip to main content
A newer version of this page is available. .

GaugeControlBase.SaveLayoutToRegistry(String) Method

Saves the layout of gauges and their elements to a system registry path.

Namespace: DevExpress.XtraGauges.Win

Assembly: DevExpress.XtraGauges.v19.1.Win.dll


public virtual void SaveLayoutToRegistry(
    string path


Name Type Description
path String

A string value specifying the system registry path to which the layout is saved.


Use the SaveLayoutToRegistry method to save the layout of gauges and their elements to the system registry. You can then restore these settings using the GaugeControlBase.RestoreLayoutFromRegistry method.

You can define whole and partial registry keys as the parameter. For instance, specifying “Software\MyCompany\MyProject" as a partial key will result in saving settings to the “HKEY_CURRENT_USER\Software\MyCompany\MyProject" path. You can also specify the entire path if you need to store the layout at another root key, for instance. An example is the “HKEY_LOCAL_MACHINE\Software\MyCompany\MyProject" registry path.


You can utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls at once.

See Also