RibbonFactory.CreateOfficeRibbon Method
Creates a OfficeRibbon object that represents a Ribbon customization.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
Function CreateOfficeRibbon ( _
extension As IRibbonExtension _
) As OfficeRibbon
OfficeRibbon CreateOfficeRibbon(
IRibbonExtension extension
)
Parameters
- extension
Type: Microsoft.Office.Tools.Ribbon.IRibbonExtension
An instance of a class that implements the IRibbonExtension interface.
Return Value
Type: Microsoft.Office.Tools.Ribbon.OfficeRibbon
A Ribbon customization.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.