RibbonCollectionBase.GetRibbon Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetRibbon(Type) | |
GetRibbon<TRibbon>() |
GetRibbon(Type)
public:
Microsoft::Office::Tools::Ribbon::IRibbonExtension ^ GetRibbon(Type ^ customRibbonType);
public Microsoft.Office.Tools.Ribbon.IRibbonExtension GetRibbon (Type customRibbonType);
member this.GetRibbon : Type -> Microsoft.Office.Tools.Ribbon.IRibbonExtension
Public Function GetRibbon (customRibbonType As Type) As IRibbonExtension
Parameters
- customRibbonType
- Type
Returns
Remarks
To access Ribbons in your project, call the Ribbons
property of the Globals
class. For more information, see Accessing the Ribbon at Run Time.
Applies to
GetRibbon<TRibbon>()
public:
generic <typename TRibbon>
TRibbon GetRibbon();
public TRibbon GetRibbon<TRibbon> ();
member this.GetRibbon : unit -> 'Ribbon
Public Function GetRibbon(Of TRibbon) () As TRibbon
Type Parameters
- TRibbon
Returns
TRibbon
Remarks
To access Ribbons in your project, call the Ribbons
property of the Globals
class. For more information, see Accessing the Ribbon at Run Time.