GaugeControlBase.SaveLayoutToXml(String) Method
SECURITY-RELATED CONSIDERATIONS
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Saves the layout of gauges and their elements to a specific XML file.
Namespace: DevExpress.XtraGauges.Win
Assembly: DevExpress.XtraGauges.v26.1.Win.dll
Declaration
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.