Share via


RibbonReadOnlyCollection Class (2007 System)

Provides access to the OfficeRibbon instances in a Ribbon customization.

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

Syntax

'Declaration
Public Class RibbonReadOnlyCollection _
    Inherits ReadOnlyCollection(Of OfficeRibbon)
'Usage
Dim instance As RibbonReadOnlyCollection
public class RibbonReadOnlyCollection : ReadOnlyCollection<OfficeRibbon>
public ref class RibbonReadOnlyCollection : public ReadOnlyCollection<OfficeRibbon^>
public class RibbonReadOnlyCollection extends ReadOnlyCollection<OfficeRibbon>

Remarks

The collection represented by this object can contain either all OfficeRibbon instances of any type in a Ribbon customization, or only those OfficeRibbon instances for a particular message class or Microsoft Office application.

When you add a Ribbon to a project, Visual Studio Tools for Office adds the Globals class to your application. The Ribbons property of the Globals class returns an instance that is derived from the RibbonReadOnlyCollection class. You can use the Globals.Ribbons collection to access Ribbons that are associated with your Office customization.

Inheritance Hierarchy

System.Object
  System.Collections.ObjectModel.ReadOnlyCollection<OfficeRibbon>
    Microsoft.Office.Tools.Ribbon.RibbonReadOnlyCollection

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

RibbonReadOnlyCollection Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Accessing the Ribbon at Run Time

Global Access to Objects in Visual Studio Tools for Office Projects