DockManager.SaveToRegistry(String) Method

Saves the layout of the dock panels to the registry.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public virtual bool SaveToRegistry(
    string path
)
Public Overridable Function SaveToRegistry(
    path As String
) As Boolean

Parameters

Name Type Description
path String

A string value specifying the registry path at which to save the layout.

Returns

Type Description
Boolean

true if the operation is successfully completed; otherwise, false.

Remarks

This method is obsolete. Use the DockManager.SaveLayoutToRegistry method instead.

Examples

The following code can be used to write and read a docking layout to and from the system registry. The full path to the docking layout will be: HKEY_CURRENT_USER\DevExpress\XtraBars\DockStates\MainState.

string regKey = "DevExpress\\XtraBars\\DockStates\\MainState";
dockManager1.SaveLayoutToRegistry(regKey);

// ...

dockManager1.RestoreLayoutFromRegistry(regKey);
See Also