Dela via


AddIn.CreateRibbonObjects Method (2007 System)

Returns an array of OfficeRibbon objects to the CreateRibbonExtensibilityObject method.

Namespace:  Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
Protected Overridable Function CreateRibbonObjects As OfficeRibbon()
'Usage
Dim returnValue As OfficeRibbon()

returnValue = Me.CreateRibbonObjects()
protected virtual OfficeRibbon[] CreateRibbonObjects()
protected:
virtual array<OfficeRibbon^>^ CreateRibbonObjects()
protected function CreateRibbonObjects() : OfficeRibbon[]

Return Value

Type: array<Microsoft.Office.Tools.Ribbon.OfficeRibbon[]
An array of OfficeRibbon objects.

Remarks

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

AddIn Class

AddIn Members

Microsoft.Office.Tools Namespace