Bar

BarManager.RestoreFromXml(String) Method

Restores the BarManager component state from an xml file.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public virtual void RestoreFromXml(
    string xmlFile
)
Public Overridable Sub RestoreFromXml(
    xmlFile As String
)

Parameters

Name Type Description
xmlFile String

An xml file from which the BarManager component's state is restored.

Remarks

This method is obsolete. Use the BarManager.RestoreLayoutFromXml method instead.

Examples

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