Share via


RibbonCollectionBase.GetRibbonContextCollection Method (Object, Type)

This API supports the Visual Studio infrastructure and is not intended to be used directly from your code.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v4.0.Utilities (in Microsoft.Office.Tools.Common.v4.0.Utilities.dll)

Syntax

'Declaration
Public Function GetRibbonContextCollection ( _
    contextWindow As Object, _
    customRibbonType As Type _
) As IList(Of IRibbonExtension)
public IList<IRibbonExtension> GetRibbonContextCollection(
    Object contextWindow,
    Type customRibbonType
)

Parameters

Return Value

Type: System.Collections.Generic.IList<IRibbonExtension>

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.

.NET Framework Security

See Also

Reference

RibbonCollectionBase Class

GetRibbonContextCollection Overload

Microsoft.Office.Tools.Ribbon Namespace