Skip to main content
A newer version of this page is available. .

GaugeControlBase.SaveLayoutToXml(String) Method

Saves the layout of gauges and their elements to a specific XML file.

Namespace: DevExpress.XtraGauges.Win

Assembly: DevExpress.XtraGauges.v18.2.Win.dll

Declaration

public virtual void SaveLayoutToXml(
    string xmlFile
)

Parameters

Name Type Description
xmlFile String

A string that specifies the path to the file where the layout will be stored. If an empty string is specified, an exception is raised.

Remarks

Use the SaveLayoutToXml method to save the layout of gauges and their elements to a specific XML file at runtime. You can then restore saved settings using the GaugeControlBase.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