windowsforms-devexpress-dot-xtrabars-dot-docking-dot-dockmanager-dot-savetostream-x28-system-dot-io-dot-stream-x29.md
Saves the layout of dock panels to a stream.
Namespace : DevExpress.XtraBars.Docking
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void SaveToStream(
Stream stream
)
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Sub SaveToStream(
stream As Stream
)
| Name | Type | Description |
|---|---|---|
| stream | Stream |
A Stream descendant to which the layout of the dock panels is written.
|
This method is obsolete. Use the DockManager.SaveLayoutToStream method instead.
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);
Dim stream As System.IO.Stream
stream = New System.IO.MemoryStream()
DockManager1.SaveToStream(stream)
' Set the stream pointer to the beginning.
stream.Seek(0, System.IO.SeekOrigin.Begin)
' ...
DockManager1.RestoreFromStream(stream)
' Set the stream pointer to the beginning.
stream.Seek(0, System.IO.SeekOrigin.Begin)
See Also