windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockmanager-dot-restorefromregistry-x28-system-dot-string-x29.md
Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.
Restores the layout stored at the specified system registry path to the dock panels.
Namespace : DevExpress.XtraBars.Docking
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void RestoreFromRegistry(
string path
)
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Sub RestoreFromRegistry(
path As String
)
| Name | Type | Description |
|---|---|---|
| path | String |
A string value specifying the system registry path. If the specified path doesn’t exist, calling this method has no effect.
|
This method is obsolete. Use the DockManager.RestoreLayoutFromRegistry method instead.
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);
Dim regKey As String = "DevExpress\XtraBars\DockStates\MainState"
DockManager1.SaveLayoutToRegistry(regKey)
'...
DockManager1.RestoreLayoutFromRegistry(regKey)
See Also