A newer version of this page is available. Switch to the current version.

BaseAppearanceCollection.RestoreLayoutFromXml(String) Method

Loads the appearance settings stored in the specified XML file.

Namespace: DevExpress.Utils

Assembly: DevExpress.Utils.v18.2.dll


public virtual void RestoreLayoutFromXml(
    string xmlFile
Public Overridable Sub RestoreLayoutFromXml(
    xmlFile As String


Name Type Description
xmlFile String

A string value specifying the path to the XML file which contains the appearance settings to be loaded. If the specified file doesn't exist, an exception is raised.


Use the RestoreLayoutFromXml method to load the appearance settings previously saved to an XML file via the BaseAppearanceCollection.SaveLayoutToXml method.


The following example shows how to read and write the appearance settings used to paint the XtraGrid's elements to/from an XML file.

string fileName = "C:\\appearanceLayout.xml";
// ...
See Also