BarManager.RestoreFromXml(String) Method
In This Article
Restores the BarManager component state from an xml file.
Namespace: DevExpress.XtraBars
Assembly: DevExpress.XtraBars.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void RestoreFromXml(
string xmlFile
)
#Parameters
Name | Type | Description |
---|---|---|
xml |
String | An xml file from which the Bar |
#Remarks
This method is obsolete. Use the BarManager.RestoreLayoutFromXml 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