A newer version of this page is available. Switch to the current version.

SchedulerControl.SaveLayoutToXml(String) Method

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.dll

Declaration

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

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.

Implements

DevExpress.Utils.Serializing.ISupportXtraSerializer.SaveLayoutToXml(String)
See Also