RibbonControl.RestoreLayout(Object) Method

Restores the previously saved layout of a RibbonControl.

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v20.1.dll

Declaration

public virtual void RestoreLayout(
    object path
)
Public Overridable Sub RestoreLayout(
    path As Object
)

Parameters

Name Type Description
path Object

A path to the layout configuration file or a Stream from which a custom layout is to be restored.

Remarks

The RestoreLayout method loads contents of an .xml file or a stream generated by the RibbonControl.SaveLayout method. You can also use the RibbonControl.RestoreDefaultLayout method to discard all the layout customizations and roll back to the default layout.

Saving and restoring layouts is part of the Customization feature. See the Runtime Customization topic for more information.

See Also