Skip to main content

SchedulerControl.SaveLayoutToXml(String) Method

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

public void SaveLayoutToXml(
    string xmlFile
)

Parameters

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.

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