RibbonButtonGroup.Items Property (2007 System)
Gets the controls that are contained in this RibbonButtonGroup.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Items As RibbonComponentCollection(Of RibbonControl)
'Usage
Dim instance As RibbonButtonGroup
Dim value As RibbonComponentCollection(Of RibbonControl)
value = instance.Items
[BrowsableAttribute(false)]
public RibbonComponentCollection<RibbonControl> Items { get; }
[BrowsableAttribute(false)]
public:
property RibbonComponentCollection<RibbonControl^>^ Items {
RibbonComponentCollection<RibbonControl^>^ get ();
}
public function get Items () : RibbonComponentCollection<RibbonControl>
Property Value
Type: Microsoft.Office.Tools.Ribbon.RibbonComponentCollection<RibbonControl>
Returns a RibbonComponentCollection<T> object that you can use to access the controls that were added to this RibbonButtonGroup at design time.
Remarks
To add controls to a RibbonButtonGroup, drag a Button, Gallery, Menu, SplitButton, or ToggleButton from the Office Ribbon Controls tab of the Toolbox to the Ribbon Designer.
You can add controls to a RibbonButtonGroup collection at design time. You can add controls to this collection at run time only under certain conditions. 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