Skip to main content

DockManager.SaveToStream(Stream) Method

Saves the layout of dock panels to a stream.

Namespace: DevExpress.XtraBars.Docking

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void SaveToStream(
    Stream stream
)

Parameters

Name Type Description
stream Stream

A Stream descendant to which the layout of the dock panels is written.

Remarks

This method is obsolete. Use the DockManager.SaveLayoutToStream method instead.

Example

The following code demonstrates how to write and read the docking layout to and from memory.

System.IO.Stream stream = new System.IO.MemoryStream();
dockManager1.SaveLayoutToStream(stream);
// Set the stream pointer to the beginning.
stream.Seek(0, System.IO.SeekOrigin.Begin);

// ...

dockManager1.RestoreLayoutFromStream(stream);
// Set the stream pointer to the beginning.
stream.Seek(0, System.IO.SeekOrigin.Begin);
See Also