GaugeControlBase.RestoreStyleFromXml(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.
Restores the style from the specified XML file.
Namespace: DevExpress.XtraGauges.Win
Assembly: DevExpress.XtraGauges.v25.2.Win.dll
NuGet Package: DevExpress.Win.Gauges
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| path | String | A String value which specifies the path to the XML file that contains the style to be loaded. If the specified file doesn’t exist, an exception is raised. |
Remarks
Use the RestoreStyleFromXml method to load a style which has been saved to a file in the XML format using the GaugeControlBase.SaveStyleToXml method.
See Also