IUICollection interface (uiribbon.h)

The IUICollection interface is implemented by the Ribbon framework. The IUICollection interface defines the methods for dynamically manipulating collection-based controls, such as the various Ribbon galleries and the Quick Access Toolbar (QAT), at run time.

Inheritance

The IUICollection interface inherits from the IUnknown interface. IUICollection also has these types of members:

Methods

The IUICollection interface has these methods.

 
IUICollection::Add

Adds an item to the end of the IUICollection.
IUICollection::Clear

Deletes all items from the IUICollection.
IUICollection::GetCount

Retrieves the number of items contained in the IUICollection.
IUICollection::GetItem

Retrieves an item from the IUICollection at the specified index.
IUICollection::Insert

Inserts an item into the IUICollection at the specified index.
IUICollection::RemoveAt

Removes an item from the IUICollection at the specified index.
IUICollection::Replace

Replaces an item at the specified index of the IUICollection with another item.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only]
Target Platform Windows
Header uiribbon.h

See also

Gallery Sample

IUICollectionChangedEvent