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.1.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
Declaration
Parameters
Name | Type | Description |
---|---|---|
xmlFile | String | A string value specifying the XML file name. |
options | OptionsLayoutBase | An OptionsLayoutTreeList object that specifies which Tree List options must be saved. Or, a OptionsLayoutBase.FullLayout object, to save all the settings. |
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.