Share via


WorkbookBase.CreateRibbonObjects Method

Returns an array of OfficeRibbon objects to the CreateRibbonExtensibilityObject method.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Protected Overridable Function CreateRibbonObjects As IRibbonExtension()
protected virtual IRibbonExtension[] CreateRibbonObjects()

Return Value

Type: array<Microsoft.Office.Tools.Ribbon.IRibbonExtension[]
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.

.NET Framework Security

See Also

Reference

WorkbookBase Class

Microsoft.Office.Tools.Excel Namespace