Bagikan melalui


AddIn.CreateRibbonExtensibilityObject Method (2007 System)

Returns an object that implements the Microsoft.Office.Core.IRibbonExtensibility interface.

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

Syntax

'Declaration
Protected Overridable Function CreateRibbonExtensibilityObject As IRibbonExtensibility
'Usage
Dim returnValue As IRibbonExtensibility 

returnValue = Me.CreateRibbonExtensibilityObject()
protected virtual IRibbonExtensibility CreateRibbonExtensibilityObject()
protected:
virtual IRibbonExtensibility^ CreateRibbonExtensibilityObject()
protected function CreateRibbonExtensibilityObject() : IRibbonExtensibility

Return Value

Type: IRibbonExtensibility
An object that implements the Microsoft.Office.Core.IRibbonExtensibility interface.

Remarks

Override this method to provide the Microsoft Office application an implementation of the Microsoft.Office.Core.IRibbonExtensibility interface, or if you have multiple Ribbons in your project and you want to specify which Ribbons to display at run time.

You do not have to override this method to return Ribbons that you add to the project by using the Ribbon (Visual Designer) item template. By default, this method returns a RibbonManager object that represents all Ribbon (Visual Designer) items in the project. For more information, see Ribbon Overview.

You must override the CreateRibbonExtensibilityObject or RequestService method to return Ribbons in your project that you add by using the Ribbon (XML) item template. For more information about how to override the CreateRibbonExtensibilityObject method, see Ribbon XML.

For more information about how to override the RequestService method, see Customizing UI Features By Using Extensibility Interfaces.

.NET Framework Security

See Also

Reference

AddIn Class

AddIn Members

Microsoft.Office.Tools Namespace