Partager via


WorkbookBase.CreateRibbonObjects Method

Definition

Returns an array of OfficeRibbon objects to the CreateRibbonExtensibilityObject() method.

protected:
 virtual cli::array <Microsoft::Office::Tools::Ribbon::IRibbonExtension ^> ^ CreateRibbonObjects();
protected virtual Microsoft.Office.Tools.Ribbon.IRibbonExtension[] CreateRibbonObjects ();
abstract member CreateRibbonObjects : unit -> Microsoft.Office.Tools.Ribbon.IRibbonExtension[]
override this.CreateRibbonObjects : unit -> Microsoft.Office.Tools.Ribbon.IRibbonExtension[]
Protected Overridable Function CreateRibbonObjects () As IRibbonExtension()

Returns

An array of OfficeRibbon objects.

Remarks

This method is called by the default implementation of the CreateRibbonExtensibilityObject method of the WorkbookBase 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