Share via


RibbonCollectionBase.GetRibbon 方法 (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 GetRibbon ( _
    customRibbonType As Type _
) As IRibbonExtension
public IRibbonExtension GetRibbon(
    Type customRibbonType
)

參數

傳回值

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

備註

若要在您的專案中存取功能區,請呼叫 Globals 類別的 Ribbons 屬性。 如需詳細資訊,請參閱在執行階段存取功能區

.NET Framework 安全性

請參閱

參考

RibbonCollectionBase 類別

GetRibbon 多載

Microsoft.Office.Tools.Ribbon 命名空間