RibbonDropDown.Buttons Property

Definition

Gets a collection of RibbonButton objects that belong to this RibbonDropDown.

C#
public System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.RibbonButton> Buttons { get; }

Property Value

A collection of RibbonButton objects that belong to this RibbonDropDown.

Remarks

The RibbonDropDown control can contain both RibbonDropDownItem controls and RibbonButton controls.

You can add buttons to the Buttons property only before the Ribbon loads. For more information, see Ribbon Object Model Overview.

Applies to

Product Versions
Visual Studio Tools for Office 2017, 2019, 2022