Skip to main content
All docs
V25.2
  • RibbonControl.SaveLayout(Stream) Method

    Saves the custom layout of a RibbonControl as a Stream.

    Namespace: DevExpress.Xpf.Ribbon

    Assembly: DevExpress.Xpf.Ribbon.v25.2.dll

    Declaration

    public virtual void SaveLayout(
        Stream stream
    )

    Parameters

    Name Type Description
    stream Stream

    A Stream to which a custom layout is saved.

    Remarks

    The SaveLayout(System.IO.Stream) method saves the custom layout of a RibbonControl as a Stream. To restore the custom layout, use the RibbonControl.RestoreLayout(System.IO.Stream) method.

    You can also use the RibbonControl.SaveDefaultLayout() method to save the current RibbonControl layout as the default layout.

    Saving and restoring layouts is part of the Customization feature. Refer to the following section for more information: Runtime Customization.

    See Also