GaugeControlBase.SaveLayoutToXml(String) Method

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

Namespace: DevExpress.XtraGauges.Win

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

Declaration

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

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.

Implements

DevExpress.XtraGauges.Base.IGaugeContainer.SaveLayoutToXml(String)
See Also