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

XRPivotGridAppearances.SaveLayoutToXml(String) Method

Saves the appearance settings to a specific XML file.

Namespace: DevExpress.XtraReports.UI.PivotGrid

Assembly: DevExpress.XtraReports.v19.1.dll

Declaration

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

Parameters

Name Type Description
xmlFile String

A String value, specifying the path to the file in which the appearance settings should be stored. If an empty string is specified, an exception is raised.

Remarks

Use the SaveLayoutToXml method to save the activated appearance settings to an XML file at runtime. The appearance settings are activated if their corresponding options are enabled. You can then restore the saved settings using the XRPivotGridAppearances.RestoreLayoutFromXml 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