Skip to main content

SchedulerControl.SaveLayoutToXml(String) Method

Saves the control’s layout to the specified XML file.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v23.1.dll

NuGet Package: DevExpress.Win.Scheduler


public void SaveLayoutToXml(
    string xmlFile


Name Type Description
xmlFile String

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.


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.


You can utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls at once.

See Also