Skip to main content

TreeList.SaveLayoutToStream(Stream, OptionsLayoutBase) Method

Saves the control’s layout to a stream, using the specified options.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public virtual void SaveLayoutToStream(
    Stream stream,
    OptionsLayoutBase options
)

Parameters

Name Type Description
stream Stream

A System.IO.Stream object to which the control’s layout is written.

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 SaveLayoutToStream method to write the Tree List control’s layout to a stream. You can read stored settings from the stream via the TreeList.RestoreLayoutFromStream method.

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