Back to Devexpress

TreeList.SaveLayoutToStream(Stream, OptionsLayoutBase) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-savelayouttostream-x28-system-dot-io-dot-stream-devexpress-dot-utils-dot-optionslayoutbase-x29.md

latest2.5 KB
Original Source

TreeList.SaveLayoutToStream(Stream, OptionsLayoutBase) Method

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

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

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

Parameters

NameTypeDescription
streamStream

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

Save and Restore Layouts of DevExpress controls

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace