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

Provides access to options that specify how a control’s layout is stored to and restored from a data store (a stream, xml file or the system registry).

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public OptionsLayoutTreeList OptionsLayout { get; }

#Property Value

Type Description
OptionsLayoutTreeList

An OptionsLayoutTreeList object that provides the corresponding options.

#Remarks

Use the TreeList.SaveLayoutToRegistry, TreeList.SaveLayoutToStream and TreeList.SaveLayoutToXml methods to save the control’s layout. To restore the saved layout, use the TreeList.RestoreLayoutFromRegistry, TreeList.RestoreLayoutFromStream or TreeList.RestoreLayoutFromXml method.

The options provided by the OptionsLayout property are in effect for the SaveLayoutTo… and RestoreLayoutFrom… method overloads that do not have a parameter of the OptionsLayoutTreeList type.

Tip

Handle the PropertySerializing and PropertyDeserializing events for fine-grained control over layout saving/restoring.

See Also