Skip to main content
All docs
V25.1
  • RibbonQuickAccessToolbar.SaveLayoutToJson(Stream) Method

    Saves the Quick Access Toolbar’s layout to a file in JSON format.

    Namespace: DevExpress.XtraBars.Ribbon

    Assembly: DevExpress.XtraBars.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    public virtual void SaveLayoutToJson(
        Stream utf8jsonStream
    )

    Parameters

    Name Type Description
    utf8jsonStream Stream

    The layout in UTF-8 encoded JSON format.

    Remarks

    To correctly save the layout, the BarItem.Id property of bar items created in code must be set to a unique value. Bar items created at design time automatically initialize the Id property.

    Use the RestoreLayoutFromJson(Stream) method to load the layout from a file in JSON format.

    Tip

    Use the Persistence Behavior or Workspace Manager component to save and restore layouts for all DevExpress UI controls simultaneously.

    See Also