Skip to main content

RibbonControl.SetCurrentLayoutAsDefault() Method

Sets the current RibbonControl layout as the default layout.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public void SetCurrentLayoutAsDefault()

Remarks

If the RibbonControl.AllowCustomization property equals true, end-users can customize the layout (see the Runtime Customization topic for more info). To discard all the layout changes, an end-user can click the Reset button in the Ribbon Customization window.

Ribbon - Reset Custom Layout

The SetCurrentLayoutAsDefault method sets the currently applied layout as the default layout for this RibbonControl, so whenever an end-user clicks the Reset button, the layout will be rolled back to this default layout.

See Also