[]
        
(Showing Draft Content)

C1.C1Preview.EventCollection

EventCollection Class

Represents an OwnedCollection that fires events when changing.

Namespace: C1.C1Preview
Assembly: C1.PrintDocument.8.dll
Syntax
public class EventCollection : OwnedCollection, IList, ICollection, IEnumerable

Constructors

Name Description
EventCollection(ICollectionOwner)

Initializes a new instance of the EventCollection.

Methods

Name Description
OnClear()

Called when the collection is about to be cleared. Fires the Changing event.

OnClearComplete()

Called after the collection has been cleared. Fires the Changed event.

OnInsert(int, object)

Called when an item is about to be iserted. Fires the Changing event.

OnInsertComplete(int, object)

Called after an item has been inserted. Fires the Changed event.

OnRemove(int, object)

Called when an item is about to be removed. Fires the Changing event.

OnRemoveComplete(int, object)

Called after an item has been removed. Fires the Changed event.

OnSet(int, object, object)

Called when an item is about to be set. Fires the Changing event.

OnSetComplete(int, object, object)

Called after an item has been set. Fires the Changed event.

Events

Name Description
Changed

Occurs after a change has been made to the current collection.

Changing

Occurs when a change is about to be made to the current collection.