Udostępnij za pośrednictwem


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

See Also

Reference

RibbonButtonGroup Class

RibbonButtonGroup Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview