Skip to main content

GaugeControlBase.SaveLayoutToXml(String) Method

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

Namespace: DevExpress.XtraGauges.Win

Assembly: DevExpress.XtraGauges.v24.1.Win.dll

NuGet Package: DevExpress.Win.Gauges

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