Skip to main content

XRPivotGridAppearances.RestoreLayoutFromRegistry(String) Method

Restores the appearance settings stored at the specified system registry path.

Namespace: DevExpress.XtraReports.UI.PivotGrid

Assembly: DevExpress.XtraReports.v22.1.dll

NuGet Package: DevExpress.Reporting.Core


public virtual void RestoreLayoutFromRegistry(
    string path


Name Type Description
path String

A String value, specifying the system registry path. If the specified path does not exist, calling this method has no effect.


Use the RestoreLayoutFromRegistry method to restore the appearance settings written to the system registry by the XRPivotGridAppearances.SaveLayoutToRegistry method.

Whole and partial registry keys can be used for this method’s parameter. For example, if “Software\Company" is passed as the parameter the full path will be: “HKEY_CURRENT_USER\Software\Company". If you wish to store the settings in another root key, you should define the entire path (for example, “HKEY_LOCAL_MACHINE\Software\Company").


The following code can be used to write and read the appearance settings applied to the XtraGrid’s elements to/from the system registry. The full path used is: HKEY_CURRENT_USER\DevExpress\Utils\Layouts\Appearance.

string regKey = "DevExpress\\Utils\\Layouts\\Appearance";


See Also