BarManager.SaveToXml(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 BarManager component state to an xml file.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v25.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void SaveToXml(
string xmlFile
)
Parameters
| Name | Type | Description |
|---|---|---|
| xmlFile | String | An xml file to which the BarManager component’s state is saved. |
Remarks
This method is obsolete. Use the BarManager.SaveLayoutToXml method instead.
Example
The following code can be used to read and write a BarManager’s state from/to an XML file.
string xmlFile = "c:\\XtraBars\\States\\MainState.xml";
barManager1.SaveLayoutToXml(xmlFile);
//...
barManager1.RestoreLayoutFromXml(xmlFile);
See Also