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

    Saves the custom layout of a RibbonControl as an XML file.

    Namespace: DevExpress.Xpf.Ribbon

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

    Declaration

    public virtual void SaveLayout(
        string path
    )

    Parameters

    Name Type Description
    path String

    A path to the layout configuration file to which a custom layout is saved.

    Remarks

    The SaveLayout(System.String) method saves the custom layout of a RibbonControl to an XML file. To restore the custom layout, use the RibbonControl.RestoreLayout(System.String) 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