更新:2007 年 11 月
表示 RibbonButton 对象的集合。
命名空间: Microsoft.Office.Tools.Ribbon
程序集: Microsoft.Office.Tools.Common.v9.0(在 Microsoft.Office.Tools.Common.v9.0.dll 中)
语法
声明
Public NotInheritable Class RibbonButtonCollection _
Inherits Collection(Of RibbonButton)
用法
Dim instance As RibbonButtonCollection
public sealed class RibbonButtonCollection : Collection<RibbonButton>
备注
RibbonGallery.Buttons 和 RibbonDropDown.Buttons 成员都属于 RibbonButtonCollection 类型。这些成员公开属于其父类型的所有按钮的集合。
在功能区加载到 Office 应用程序中之后,就不能再向这些集合添加项。
继承层次结构
System.Object
System.Collections.ObjectModel.Collection<RibbonButton>
Microsoft.Office.Tools.Ribbon.RibbonButtonCollection
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。