RibbonButtonCollection クラス (2007 System)

更新 : 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) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

参照

参照

RibbonButtonCollection メンバ

Microsoft.Office.Tools.Ribbon 名前空間