共用方式為


RibbonDropDown.Buttons 屬性 (2007 系統)

更新:2007 年 11 月

取得屬於此 RibbonDropDown 之按鈕的 RibbonButtonCollection

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

語法

Public ReadOnly Property Buttons As RibbonButtonCollection

Dim instance As RibbonDropDown
Dim value As RibbonButtonCollection

value = instance.Buttons
public RibbonButtonCollection Buttons { get; }

屬性值

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

屬於此 RibbonDropDown 之按鈕的 RibbonButtonCollection

備註

RibbonDropDown 控制項可以同時包含 RibbonDropDownItem 控制項和 RibbonButton 控制項。

您只能在功能區載入之前將按鈕加入至 Buttons 屬性。如需詳細資訊,請參閱功能區物件模型概觀

使用權限

請參閱

參考

RibbonDropDown 類別

RibbonDropDown 成員

Microsoft.Office.Tools.Ribbon 命名空間

RibbonDropDown.Items

RibbonDropDown

其他資源

功能區物件模型概觀