UICollection - harborsiem/WinForms-Ribbon GitHub Wiki
UICollection<T>
UICollection<T> is a helper class. T is a Type AbstractPropertySet (CategoriesPropertySet, GalleryItemPropertySet, GalleryCommandPropertySet, QatCommandPropertySet)
Public constructors, methods, properties and events:
Constructors:
UICollection<T> is created by GalleryItem controls RibbonComboBox, RibbonDropDownGallery, RibbonInRibbonGallery and RibbonSplitButtonGallery for properties GalleryCategories, GalleryItemItemsSource, GalleryCommandItemsSource. In the control RibbonQuickAccessToolbar it is also created for property QatItemsSource.
Methods:
Name | Description |
---|---|
Add(T) | Add an item of Type T. |
Clear() | Clear the collection. |
GetEnumerator() | Get the Enumerator. |
Insert(int, T) | Insert an item of Type T by index. |
RemoveAt(int) | Remove an item of Type T by index. |
Properties:
Name | Description |
---|---|
CollectionList | Get a readonly collection list. |
Count | Get count of items in the collection. |
Item[int] | Get an item of Type T by index. Set: Replace an item by index. |
Events:
Name | Description |
---|---|
ChangedEvent | User can handle changing of collection. EventArgs are CollectionChangedEventArgs. |