Share via


RibbonReadOnlyCollection.GetRibbonContextCollection Method

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

Returns a collection of IRibbonExtension objects that are associated with a specified message class or application.

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 GetRibbonContextCollection ( _
    contextWindow As Object, _
    customRibbonType As Type _
) As IList(Of IRibbonExtension)
IList<IRibbonExtension> GetRibbonContextCollection(
    Object contextWindow,
    Type customRibbonType
)

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

RibbonReadOnlyCollection Interface

Microsoft.Office.Tools.Ribbon Namespace