Back to Devexpress

SchedulerControl.SaveLayoutToXml(String) Method

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

latest2.4 KB
Original Source

SchedulerControl.SaveLayoutToXml(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 specified XML file.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
public void SaveLayoutToXml(
    string xmlFile
)
vb
Public Sub SaveLayoutToXml(
    xmlFile As String
)

Parameters

NameTypeDescription
xmlFileString

A String value specifying the path to the file where the layout is to be saved. If an empty string is specified, an exception is raised.

|

Remarks

The SaveLayoutToXml method saves the control’s layout (the settings of all the Views, the type of the active View, grouping mode, etc) to the specified XML file. The saved settings can then be restored from the storage using the SchedulerControl.RestoreLayoutFromXml method.

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