Skip to main content

TileControl.SaveLayoutToXml(String) Method

Saves the current TileControl layout to an XML file.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public virtual void SaveLayoutToXml(
    string xmlFile
)

Parameters

Name Type Description
xmlFile String

A String value specifying the path to the file in which the layout should be stored. If an empty string is specified, an exception is raised.

Remarks

The SaveLayoutToXml method creates an .xml file to save the current custom TileControl layout at runtime. Later, this file can be loaded via the TileControl.RestoreLayoutFromXml method to restore the layout. You can also save a custom user layout via the TileControl.SaveLayoutToRegistry and TileControl.SaveLayoutToStream methods.

Saved layouts keep information about group and item arrangements and content. Item appearance settings are not kept.

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