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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace