Items Property

RibbonGroup.Items Property


Gets the controls in the group.

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

IList<RibbonControl> Items { get; }

Property Value

Type: System.Collections.Generic.IList<RibbonControl>

The collection of controls in the group.

Exception Condition

You try to add, remove, or replace a RibbonControl after the Ribbon is loaded.

You can add a Ribbon control to a group at run time, but only before the Ribbon is loaded. Create an instance of the control, and then add the new control to the Items collection. For more information, see Ribbon Object Model Overview.

When you add controls to a group by using the Ribbon Designer, Visual Studio automatically adds the controls to the Items property of the group.

Return to top
© 2015 Microsoft