CollectionChangedEventArgs - harborsiem/WinForms-Ribbon GitHub Wiki

CollectionChangedEventArgs

CollectionChangedEventArgs is derived from EventArgs. When the ChangedEvent is fired, the sender parameter has Type CollectionItem

Public constructors, methods, properties and events:

Constructors:

CollectionChangedEventArgs is created by UICollection<T> for the event ChangedEvent. UICollection<T> class is used by RibbonComboBox, RibbonDropDownGallery, RibbonInRibbonGallery, RibbonSplitButtonGallery, RibbonQuickAccessToolbar controls. Control properties: GalleryCategories, GalleryItemItemsSource, GalleryCommandItemsSource, QatItemsSource

Methods:

Properties:

Name and (Type) Description
Action (CollectionChange) CollectionChange enum (Insert, Remove, Replace, Reset).
OldIndex (int) Index to the old item.
NewIndex (int) Index to the new item.

Events: