Share via


RibbonGroup.Items Property

Definition

Gets the controls in the group.

public:
 property System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::RibbonControl ^> ^ Items { System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::RibbonControl ^> ^ get(); };
public System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.RibbonControl> Items { get; }
member this.Items : System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.RibbonControl>
Public ReadOnly Property Items As IList(Of RibbonControl)

Property Value

The collection of controls in the group.

Exceptions

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

Remarks

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.

Applies to