Back to Devexpress

SchedulerControl.SaveLayoutToRegistry(String) Method

windowsforms-devexpress-dot-xtrascheduler-dot-schedulercontrol-dot-savelayouttoregistry-x28-system-dot-string-x29.md

latest2.8 KB
Original Source

SchedulerControl.SaveLayoutToRegistry(String) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Saves the control’s layout to the system registry.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public void SaveLayoutToRegistry(
    string path
)
vb
Public Sub SaveLayoutToRegistry(
    path As String
)

Parameters

NameTypeDescription
pathString

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.

See Also

Save and Restore Layouts of DevExpress controls

SchedulerControl Class

SchedulerControl Members

DevExpress.XtraScheduler Namespace