SchedulerControl.SaveLayoutToRegistry(String) Method
Saves the control’s layout to the system registry.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.1.dll
NuGet Package: DevExpress.Win.Scheduler
Declaration
Parameters
Name | Type | Description |
---|---|---|
path | String | A String value specifying the system registry path in which to save the layout. |
Remarks
The SaveLayoutToRegistry method saves the control’s layout (the settings of all the Views, the type of the active View, grouping mode, etc) to the system registry. The saved settings can then be restored from the storage using the SchedulerControl.RestoreLayoutFromRegistry method.
The whole and partial registry keys can be defined as a parameter. For instance, specifying “Software\MyCompany\MyProject" as a partial key will result in the settings being saved to the “HKEY_CURRENT_USER\Software\MyCompany\MyProject" path. The entire path can also be specified, for instance, if the layout needs to be stored in a different root key. An example is the “HKEY_LOCAL_MACHINE\Software\MyCompany\MyProject" registry path.
Tip
You can utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls at once.