Condividi tramite


RibbonDropDown.Buttons Property

Definition

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

public:
 property System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::RibbonButton ^> ^ Buttons { System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::RibbonButton ^> ^ get(); };
public System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.RibbonButton> Buttons { get; }
member this.Buttons : System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.RibbonButton>
Public ReadOnly Property Buttons As IList(Of RibbonButton)

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