共用方式為


RibbonReadOnlyCollection.GetRibbonContextCollection 方法

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

傳回與指定之訊息類別或應用程式關聯的 IRibbonExtension 物件集合。

命名空間:  Microsoft.Office.Tools.Ribbon
組件:  Microsoft.Office.Tools.Common (在 Microsoft.Office.Tools.Common.dll 中)

語法

'宣告
Function GetRibbonContextCollection ( _
    contextWindow As Object, _
    customRibbonType As Type _
) As IList(Of IRibbonExtension)
IList<IRibbonExtension> GetRibbonContextCollection(
    Object contextWindow,
    Type customRibbonType
)

參數

傳回值

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

.NET Framework 安全性

請參閱

參考

RibbonReadOnlyCollection 介面

Microsoft.Office.Tools.Ribbon 命名空間