Share via


RibbonButtonCollection Class (2007 System)

Represents a collection of RibbonButton objects.

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

Syntax

'Declaration
Public NotInheritable Class RibbonButtonCollection _
    Inherits Collection(Of RibbonButton)
'Usage
Dim instance As RibbonButtonCollection
public sealed class RibbonButtonCollection : Collection<RibbonButton>
public ref class RibbonButtonCollection sealed : public Collection<RibbonButton^>
public final class RibbonButtonCollection extends Collection<RibbonButton>

Remarks

The RibbonGallery.Buttons and RibbonDropDown.Buttons members are each of the type RibbonButtonCollection. These members expose a collection of all buttons that belong to their parent types.

You cannot add items to these collections after the Ribbon has been loaded into the Office application.

Inheritance Hierarchy

System.Object
  System.Collections.ObjectModel.Collection<RibbonButton>
    Microsoft.Office.Tools.Ribbon.RibbonButtonCollection

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RibbonButtonCollection Members

Microsoft.Office.Tools.Ribbon Namespace