LayoutControl.RestoreLayoutFromRegistry(String) Method

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

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.1.dll

Declaration

public virtual void RestoreLayoutFromRegistry(
    string path
)
Public Overridable Sub RestoreLayoutFromRegistry(
    path As String
)

Parameters

Name Type Description
path String

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

Remarks

The RestoreLayoutFromRegistry method restores the layout which has been written to the system registry using the LayoutControl.SaveLayoutToRegistry method.

See Save and Restore Layout to learn more.

Examples

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";
layoutControl1.SaveLayoutToRegistry(regKey);

// ...

layoutControl1.RestoreLayoutFromRegistry(regKey);

Implements

DevExpress.XtraLayout.ILayoutControl.RestoreLayoutFromRegistry(String)
DevExpress.Utils.Serializing.ISupportXtraSerializer.RestoreLayoutFromRegistry(String)
See Also