Skip to main content

LayoutControl.RestoreLayoutFromRegistry(String) Method

Restores the layout that is stored at the specified system registry path.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v22.2.dll

NuGet Package: DevExpress.Win.Navigation


public virtual void RestoreLayoutFromRegistry(
    string path


Name Type Description
path String

A String value that specifies the system registry path. If the specified path doesn’t exist, this method does nothing.


The LayoutControl.SaveLayoutToRegistry method saves the LayoutControl’s layout to the system registry. You can then restore this layout using the RestoreLayoutFromRegistry method.

See Save and Restore Layout to learn more.


The following sample code can be used to write and read the layout to/from the system registry. The full path for the layout will be: HKEY_CURRENT_USER\DevExpress\Layout Control\Layouts.

string regKey = "DevExpress\\Layout Control\\Layouts";

// ...

See Also