Share via


RibbonDropDown.Buttons Property (2007 System)

Gets the RibbonButtonCollection of buttons that belong to this RibbonDropDown.

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

Syntax

'Declaration
Public ReadOnly Property Buttons As RibbonButtonCollection
'Usage
Dim instance As RibbonDropDown 
Dim value As RibbonButtonCollection 

value = instance.Buttons
public RibbonButtonCollection Buttons { get; }
public:
property RibbonButtonCollection^ Buttons {
    RibbonButtonCollection^ get ();
}
public function get Buttons () : RibbonButtonCollection

Property Value

Type: Microsoft.Office.Tools.Ribbon.RibbonButtonCollection
The RibbonButtonCollection of buttons 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 Class

RibbonDropDown Members

Microsoft.Office.Tools.Ribbon Namespace

RibbonDropDown.Items

RibbonDropDown

Other Resources

Ribbon Object Model Overview