Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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
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.

See Also