Dela via


RibbonComponentCollection<T> Class (2007 System)

Represents a collection of Ribbon components.

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 RibbonComponentCollection(Of T As RibbonComponent) _
    Inherits Collection(Of T)
'Usage
Dim instance As RibbonComponentCollection(Of T)
public sealed class RibbonComponentCollection<T> : Collection<T>
where T : RibbonComponent
generic<typename T>
where T : RibbonComponent 
public ref class RibbonComponentCollection sealed : public Collection<T>
JScript does not support generic types or methods.

Type Parameters

  • T

Remarks

This class is used to implement the Items collections of Ribbon controls for RibbonMenu, RibbonSplitButton, RibbonOfficeMenu, RibbonGroup, RibbonBox, and RibbonButtonGroup classes.

It is also used to implement the Tabs collection of the OfficeRibbon class, and the Groups collection of the RibbonTab class.

Inheritance Hierarchy

System.Object
  System.Collections.ObjectModel.Collection<T>
    Microsoft.Office.Tools.Ribbon.RibbonComponentCollection<T>

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

RibbonComponentCollection<T> Members

Microsoft.Office.Tools.Ribbon Namespace