RibbonDropDown.Buttons Property

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

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

Syntax

'Declaration
ReadOnly Property Buttons As IList(Of RibbonButton)
IList<RibbonButton> Buttons { get; }

Property Value

Type: System.Collections.Generic.IList<RibbonButton>
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.

.NET Framework Security

See Also

Reference

RibbonDropDown Interface

Microsoft.Office.Tools.Ribbon Namespace

RibbonDropDown.Items

RibbonDropDown

Other Resources

Ribbon Object Model Overview