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
)
參數
- contextWindow
型別:System.Object
- customRibbonType
型別:System.Type
傳回值
型別:System.Collections.Generic.IList<IRibbonExtension>
備註
若要在您的專案中存取功能區,請呼叫 Globals 類別的 Ribbons 屬性。如需詳細資訊,請參閱在執行階段存取功能區。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。