Saves the layout of dock panels to a stream.
public virtual void SaveLayoutToStream( Stream stream )
Public Overridable Sub SaveLayoutToStream( stream As Stream )
A Stream descendant to which the layout of dock panels is written.
After the layout of dock panels has been saved using the SaveLayoutToStream method it can then be restored using the DockManager.RestoreLayoutFromStream method.
For more information, see Saving and Restoring the Layout of Dock Panels
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);