共用方式為


IUICollection 介面 (uiribbon.h)

IUICollection 介面是由功能區架構實作。 IUICollection 介面會定義在運行時間動態操作集合型控件的方法,例如各種功能區資源庫和快速存取工具列 (QAT) 。

繼承

IUICollection 介面繼承自 IUnknown 介面。 IUICollection 也有下列類型的成員:

方法

IUICollection 介面具有這些方法。

 
IUICollection::Add

將專案新增至 IUICollection 的結尾。
IUICollection::Clear

從 IUICollection 刪除所有專案。
IUICollection::GetCount

擷取 IUICollection 中包含的項目數目。
IUICollection::GetItem

從指定索引處的 IUICollection 擷取專案。
IUICollection::Insert

在指定的索引處,將專案插入 IUICollection 中。
IUICollection::RemoveAt

從指定索引處的 IUICollection 中移除專案。
IUICollection::Replace

將 IUICollection 指定索引處的專案取代為另一個專案。

規格需求

需求
最低支援的用戶端 適用於 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [僅限桌面]
目標平台 Windows
標頭 uiribbon.h

另請參閱

資源庫範例

IUICollectionChangedEvent