RibbonReadOnlyCollection.GetRibbon 方法

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

傳回特定類型之 IRibbonExtension 的執行個體 (如果它存在於這個 RibbonReadOnlyCollection 中的話)。

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

語法

'宣告
Function GetRibbon ( _
    customRibbonType As Type _
) As IRibbonExtension
IRibbonExtension GetRibbon(
    Type customRibbonType
)

參數

傳回值

型別:Microsoft.Office.Tools.Ribbon.IRibbonExtension

.NET Framework 安全性

請參閱

參考

RibbonReadOnlyCollection 介面

Microsoft.Office.Tools.Ribbon 命名空間