BaseView.SaveLayoutToStream(Stream, Boolean) Method

Saves the layout in a specific stream in binary format.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public void SaveLayoutToStream(
    Stream stream,
    bool binaryStream
)
Public Sub SaveLayoutToStream(
    stream As Stream,
    binaryStream As Boolean
)

Parameters

Name Type Description
stream Stream

The stream where the layout should be saved.

binaryStream Boolean

true to save the layout in binary format; false to save the layout in XML format.

Remarks

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

NOTE

The ControlName property should be set to a unique value for documents populated with the content on the fly (see Deferred Load). Otherwise, these documents cannot be restored.

TIP

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

See Also