Skip to main content

BaseView.SaveLayoutToStream(Stream) Method

Saves the layout in a specific stream in binary format.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public void SaveLayoutToStream(
    Stream stream
)

Parameters

Name Type Description
stream Stream

The stream where the layout should be saved.

Remarks

Use the following methods to save the layout in the corresponding format/storage and subsequently restore it:

Important

The Layout Control saves and restores the View’s properties and properties of documents. It does not re-create documents with their content. You should re-create documents and then restore the layout.

The ControlName property should be set to a unique value for documents populated with the content on the fly (see Deferred Load) to restore documents correctly.

Tip

You can also utilize the Persistence Behavior or Workspace Manager component to save and restore layouts for all supported DevExpress controls.

See Also