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
- 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