Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RibbonControl.SetCurrentLayoutAsDefault() Method

In This Article

Sets the current RibbonControl layout as the default layout.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.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