Back to Devexpress

RibbonControl.SetCurrentLayoutAsDefault() Method

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-f93a4d99.md

latest2.1 KB
Original Source

RibbonControl.SetCurrentLayoutAsDefault() Method

Sets the current RibbonControl layout as the default layout.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void SetCurrentLayoutAsDefault()
vb
Public Sub 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.

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

AllowCustomization

Ribbon Runtime Customization

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace