TreeList.SaveLayoutToXml(String, OptionsLayoutBase) Method
Saves a control’s layout to a specified XML file, using the specified options.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
public virtual void SaveLayoutToXml(
string xmlFile,
OptionsLayoutBase options
)
#Parameters
Name | Type | Description |
---|---|---|
xml |
String | A string value specifying the XML file name. |
options | Options |
An Options |
#Remarks
Use the SaveLayoutToXml method to save the Tree List control’s layout to an XML file. You can restore saved settings later, via a TreeList.RestoreLayoutFromXml method call.
Tip
You can utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls at once.