RibbonFactory.CreateOfficeRibbon Method
Creates a OfficeRibbon object that represents a Ribbon customization.
Namespace: Microsoft.Office.Tools.Ribbon
Assemblies: Microsoft.Office.Tools.Common.v4.0.Utilities (in Microsoft.Office.Tools.Common.v4.0.Utilities.dll)
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.IRibbonExtensionAn 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.