RibbonReadOnlyCollection Interface

 

Provides access to the IRibbonExtension objects in a Ribbon customization.

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

[GuidAttribute("c3b587bc-42bc-401b-a1e7-f85777d5156a")]
public interface RibbonReadOnlyCollection : IList<IRibbonExtension>, 
	ICollection<IRibbonExtension>, IEnumerable<IRibbonExtension>, 
	IEnumerable

NameDescription
System_CAPS_pubpropertyCount

(Inherited from ICollection<T>.)

System_CAPS_pubpropertyIsReadOnly

(Inherited from ICollection<T>.)

System_CAPS_pubpropertyItem[Int32]

(Inherited from IList<T>.)

NameDescription
System_CAPS_pubmethodAdd(T)

(Inherited from ICollection<T>.)

System_CAPS_pubmethodClear()

(Inherited from ICollection<T>.)

System_CAPS_pubmethodContains(T)

(Inherited from ICollection<T>.)

System_CAPS_pubmethodCopyTo(T[], Int32)

(Inherited from ICollection<T>.)

System_CAPS_pubmethodGetEnumerator()

(Inherited from IEnumerable<T>.)

System_CAPS_pubmethodGetRibbon(Type)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns an instance of an IRibbonExtension of the specified type, if it exists in this RibbonReadOnlyCollection.

System_CAPS_pubmethodGetRibbonContextCollection(Object, Type)

This API supports the product infrastructure and is not intended to be used directly from your code. Returns a collection of IRibbonExtension objects that are associated with a specified message class or application.

System_CAPS_pubmethodIndexOf(T)

(Inherited from IList<T>.)

System_CAPS_pubmethodInsert(Int32, T)

(Inherited from IList<T>.)

System_CAPS_pubmethodRemove(T)

(Inherited from ICollection<T>.)

System_CAPS_pubmethodRemoveAt(Int32)

(Inherited from IList<T>.)

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

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

System_CAPS_noteNote

This interface is implemented by the Visual Studio Tools for Office runtime. It is not intended to be implemented in your code. For more information, see Visual Studio Tools for Office Runtime Overview.

This documentation describes the version of this type that is used in Office projects that target the .NET Framework 4 or later. In projects that target the .NET Framework 3.5, this type might have different members and the code examples provided for this type might not work. For documentation about this type in projects that target the .NET Framework 3.5, see the following reference section in the Visual Studio 2008 documentation: http://go.microsoft.com/fwlink/?LinkId=160658.

Return to top
Show: