RibbonCollectionBase.GetRibbonContextCollection 方法 (Object, Type)

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

命名空间:  Microsoft.Office.Tools.Ribbon
程序集:  Microsoft.Office.Tools.Common.v4.0.Utilities(在 Microsoft.Office.Tools.Common.v4.0.Utilities.dll 中)

语法

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

参数

返回值

类型:System.Collections.Generic.IList<IRibbonExtension>

备注

若要访问项目中的功能区,请调用 Globals 类的 Ribbons 属性。有关更多信息,请参见在运行时访问功能区

.NET Framework 安全性

请参见

参考

RibbonCollectionBase 类

GetRibbonContextCollection 重载

Microsoft.Office.Tools.Ribbon 命名空间