RibbonCollectionBase.GetRibbonContextCollection Method

Definition

Overloads

GetRibbonContextCollection(Object, Type)
GetRibbonContextCollection<TRibbonCollection>(Object)

GetRibbonContextCollection(Object, Type)

public:
 System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::IRibbonExtension ^> ^ GetRibbonContextCollection(System::Object ^ contextWindow, Type ^ customRibbonType);
public System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.IRibbonExtension> GetRibbonContextCollection (object contextWindow, Type customRibbonType);
member this.GetRibbonContextCollection : obj * Type -> System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.IRibbonExtension>
Public Function GetRibbonContextCollection (contextWindow As Object, customRibbonType As Type) As IList(Of IRibbonExtension)

Parameters

contextWindow
Object
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

GetRibbonContextCollection<TRibbonCollection>(Object)

public:
generic <typename TRibbonCollection>
 TRibbonCollection GetRibbonContextCollection(System::Object ^ contextWindow);
public TRibbonCollection GetRibbonContextCollection<TRibbonCollection> (object contextWindow);
member this.GetRibbonContextCollection : obj -> 'RibbonCollection
Public Function GetRibbonContextCollection(Of TRibbonCollection) (contextWindow As Object) As TRibbonCollection

Type Parameters

TRibbonCollection

Parameters

contextWindow
Object

Returns

TRibbonCollection

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