Skip to main content

GaugeControlBase.SaveStyleToXml(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 Gauge control’s current style to a file in XML format.

Namespace: DevExpress.XtraGauges.Win

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

Declaration

public void SaveStyleToXml(
    string path
)

Parameters

Name Type Description
path String

A String value that specifies the path to the file where the style should be stored. If an empty string is specified, an exception is raised.

Remarks

Style settings, saved using the SaveStyleToXml method, can then be loaded using the GaugeControlBase.RestoreStyleFromXml method.

See Also