Factory.GetRibbonFactory Method
Returns an object that you can use to create Ribbon controls at run time.
Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
Function GetRibbonFactory As RibbonFactory
RibbonFactory GetRibbonFactory()
Return Value
Type: Microsoft.Office.Tools.Ribbon.RibbonFactory
An object that you can use to create Ribbon controls at run time.
Remarks
When you create a Ribbon control at run time, you can add it to a custom Ribbon that you created by using the Ribbon (Visual Designer) project item in an Office project. For more information, see Ribbon Object Model Overview.
.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.