Restores the previously saved layout of a RibbonControl.
public virtual void RestoreLayout( object path )
Public Overridable Sub RestoreLayout( path As Object )
A path to the layout configuration file or a Stream from which a custom layout is to be restored.
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.