Back to Devexpress

RibbonQuickAccessToolbar.SaveLayoutToStream(Stream) Method

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribbonquickaccesstoolbar-dot-savelayouttostream-x28-system-dot-io-dot-stream-x29.md

latest3.2 KB
Original Source

RibbonQuickAccessToolbar.SaveLayoutToStream(Stream) Method

Saves the layout of the RibbonQuickAccessToolbar‘s items to a stream.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void SaveLayoutToStream(
    Stream stream
)
vb
Public Overridable Sub SaveLayoutToStream(
    stream As Stream
)

Parameters

NameTypeDescription
streamStream

A Stream descendant to which the layout of items is written.

|

Remarks

Bar items within the RibbonQuickAccessToolbar and within the stored layout are identified by unique identifiers specified by the BarItem.Id property. To correctly save the layout, ensure that this property is set to a unique value for each bar item. For items created at design time, the BarItem.Id properties are initialized automatically. For items created in code, you need to manually initialize their BarItem.Id properties.

Tip

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

See Also

RestoreLayoutFromRegistry(String)

RestoreLayoutFromStream(Stream)

RestoreLayoutFromXml(String)

SaveLayoutToRegistry(String)

SaveLayoutToXml(String)

Id

Save and Restore Layouts of DevExpress controls

RibbonQuickAccessToolbar Class

RibbonQuickAccessToolbar Members

DevExpress.XtraBars.Ribbon Namespace