Share via


RibbonOfficeMenu.Items Property

Definition

Gets the Ribbon controls that you added to the Microsoft Office Menu.

public:
 property System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::RibbonControl ^> ^ Items { System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::RibbonControl ^> ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.RibbonControl> Items { get; }
[<System.ComponentModel.Browsable(false)>]
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 Ribbon controls that you added to the Microsoft Office Menu at design time or run time.

Attributes

Exceptions

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

Remarks

You can add controls 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 the Microsoft Office Menu by using the Ribbon Designer, Visual Studio automatically adds the controls to the Items property.

Applies to