RibbonCollectionBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides access to the IRibbonExtension objects in a Ribbon customization.
public ref class RibbonCollectionBase abstract : Microsoft::Office::Tools::IExtension, System::Collections::Generic::ICollection<Microsoft::Office::Tools::Ribbon::IRibbonExtension ^>, System::Collections::Generic::IEnumerable<Microsoft::Office::Tools::Ribbon::IRibbonExtension ^>, System::Collections::Generic::IList<Microsoft::Office::Tools::Ribbon::IRibbonExtension ^>
public abstract class RibbonCollectionBase : Microsoft.Office.Tools.IExtension, System.Collections.Generic.ICollection<Microsoft.Office.Tools.Ribbon.IRibbonExtension>, System.Collections.Generic.IEnumerable<Microsoft.Office.Tools.Ribbon.IRibbonExtension>, System.Collections.Generic.IList<Microsoft.Office.Tools.Ribbon.IRibbonExtension>
type RibbonCollectionBase = class
interface IList<IRibbonExtension>
interface ICollection<IRibbonExtension>
interface seq<IRibbonExtension>
interface IEnumerable
interface IExtension
Public MustInherit Class RibbonCollectionBase
Implements ICollection(Of IRibbonExtension), IEnumerable(Of IRibbonExtension), IExtension, IList(Of IRibbonExtension)
- Inheritance
-
RibbonCollectionBase
- Implements
Remarks
This collection contains all of the Ribbons that are associated with your Office customization. To access the RibbonCollectionBase object in an Office project, use the Globals.Ribbons
property. For more information, see Global Access to Objects in Office Projects.
This collection 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.
Usage
This type is used only in Office projects that target the .NET Framework 4 or later. The assembly that defines this type is not part of the Visual Studio Tools for Office runtime. You must deploy this assembly with your solution. For more information, see Assemblies in the Visual Studio Tools for Office Runtime.
Constructors
RibbonCollectionBase(RibbonFactory) |
Properties
Base |
Gets a IList<T> of IRibbonExtension objects in the RibbonCollectionBase. |
Methods
GetRibbon(Type) | |
GetRibbon<TRibbon>() | |
GetRibbonContextCollection(Object, Type) | |
GetRibbonContextCollection<TRibbonCollection>(Object) |