TreeList.SaveLayoutToStream(Stream, OptionsLayoutBase) Method
Saves the control’s layout to a stream, 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 SaveLayoutToStream(
Stream stream,
OptionsLayoutBase options
)
#Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A System. |
options | Options |
An Options |
#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.