Skip to main content

GaugeControlBase.RestoreLayoutFromXml(String) Method

SECURITY NOTE

Deserializing layout settings from untrusted resources may create security issues. Review the following help topic for additional information: Safe Deserialization.

Restores the layout of gauges and their elements from a specific XML file

Namespace: DevExpress.XtraGauges.Win

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

Declaration

public virtual void RestoreLayoutFromXml(
    string xmlFile
)

Parameters

Name Type Description
xmlFile String

A string value specifying the path to the XML file that stores the layout. If the specified file doesn’t exist, a FileNotFoundException type exception is raised.

Remarks

Use the RestoreLayoutFromXml method to load the layout of gauges and their elements previously saved to an XML file with the help of the GaugeControlBase.SaveLayoutToXml method.

See Also