TreeList.SaveLayoutToStream(Stream, OptionsLayoutBase) Method

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

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll


public virtual void SaveLayoutToStream(
    Stream stream,
    OptionsLayoutBase options
Public Overridable Sub SaveLayoutToStream(
    stream As Stream,
    options As OptionsLayoutBase


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.


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.


You can utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls at once.

See Also