The requested page is not available for the requested platform. You are viewing the content for Default platform.

XRPivotGridAppearances.RestoreLayoutFromXml(String) Method

Loads the appearance settings stored in the specified XML file.

Namespace: DevExpress.XtraReports.UI.PivotGrid

Assembly: DevExpress.XtraReports.v18.2.dll

Declaration

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

Parameters

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 does not exist, an exception is raised.

Remarks

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

Examples

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";
gridControl1.MainView.Appearance.SaveLayoutToXml(fileName);
// ...
gridControl1.MainView.Appearance.RestoreLayoutFromXml(fileName);
See Also