The interface through which the Ribbon user interface communicates with a COM Add-in to customise the user interface
This interface has a single method GetCustomUI
Because of the internal architecture of the Ribbon callback mechanism, it is important that you perform no initialization within the GetCustomUI method other than preparing and returning the XML markup for the Ribbon. Specifically, do not display dialog boxes or message windows from within this callback method.

In most cases, the callback procedure exposes an IRibbonControl interface that identifies the control. The callback might pass other arguments as well, such as a Boolean object that specifies the state of a toggle button as pressed or not pressed.
The IRibbonControl interface implements three properties: the Context object, the Id object, and the Tag property.
The Tag property is a non-unique property that you can optionally specify in the markup.

protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject() 
   return new ExcelAddIn1.Ribbon();

© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext