Back to Devexpress

VGridControlBase.RestoreLayoutFromRegistry(String, OptionsLayoutBase) Method

windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrolbase-dot-restorelayoutfromregistry-x28-system-dot-string-devexpress-dot-utils-dot-optionslayoutbase-x29.md

latest2.8 KB
Original Source

VGridControlBase.RestoreLayoutFromRegistry(String, OptionsLayoutBase) Method

SECURITY-RELATED CONSIDERATIONS

Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.

Restores the control’s layout stored at the specified system registry path.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

csharp
public virtual void RestoreLayoutFromRegistry(
    string path,
    OptionsLayoutBase options
)
vb
Public Overridable Sub RestoreLayoutFromRegistry(
    path As String,
    options As OptionsLayoutBase
)

Parameters

NameTypeDescription
pathString

A string value specifying the system registry path.

| | options | OptionsLayoutBase |

An object that specifies which options must be restored.

|

Remarks

Use the RestoreLayoutFromRegistry method to restore the control’s layout, written to the system registry by the VGridControlBase.SaveLayoutToRegistry method.

The control’s layout is restored from the path specified by the path parameter. You are allowed to define whole and partial registry keys. For instance, if you define a partial key, “Software\MyCompany\MyTool" the full path will be as follows: “HKEY_CURRENT_USER\Software\MyCompany\MyTool". If you wish to store a layout in another root key, you should define the entire path, for instance: “HKEY_LOCAL_MACHINE\Software\MyCompany\MyTool".

See Also

Save and Restore Layouts of DevExpress controls

VGridControlBase Class

VGridControlBase Members

DevExpress.XtraVerticalGrid Namespace