AddInBase.CreateRibbonObjects Method

Definition

Returns an array of IRibbonExtension objects to the CreateRibbonExtensibilityObject() method. The objects represent the Ribbons to display at run time.

protected virtual Microsoft.Office.Tools.Ribbon.IRibbonExtension[] CreateRibbonObjects ();

Returns

An array of IRibbonExtension objects that represent the Ribbons to display at run time.

Remarks

This method is called by the default implementation of the CreateRibbonExtensibilityObject method of the AddInBase class when the project contains Ribbon (Visual Designer) items.

Override this method if you want to specify which Ribbons to display at run time. You can also override the CreateRibbonExtensibilityObject method to specify which Ribbons to display at run time. For more information, see Ribbon Overview.

Applies to