[This is preliminary documentation and is subject to change.]

The ListWithEvents<(Of <(<'T>)>)> type exposes the following members.

Constructors

Methods

  NameDescription
Public methodAdd
Adds an item to the ListWithEvents<(Of <(<'T>)>)>.
Protected methodAddAllItemHandlers
Adds ahndlers to all items that as of type IReportsChange
Protected methodAddIndex (Overrides ListWithEventsBase..::..AddIndex(PropertyDescriptor).)
Protected methodAddItemHandler
Adds handler to item at specified index if the item is IReportsChange
Public methodAddNew
Adds a new item to the list.
Public methodAddRange
Adds range of items into list
Protected methodApplySort (Overrides ListWithEventsBase..::..ApplySort(PropertyDescriptor, ListSortDirection).)
Public methodClear
Removes all items from the ListWithEvents<(Of <(<'T>)>)>.
(Overrides ListWithEventsBase..::..Clear()()()().)
Public methodContains(Object) Obsolete.
Determines whether the IList contains a specific value.
(Overrides ListWithEventsBase..::..Contains(Object).)
Public methodContains(T)
Determines whether the ListWithEvents<(Of <(<'T>)>)> contains a specific value.
Public methodCopyTo
Copies the elements of the ListWithEvents<(Of <(<'T>)>)> to an Array, starting at a particular Array index.
Protected methodFind (Overrides ListWithEventsBase..::..Find(PropertyDescriptor, Object).)
Public methodFindAll
Retrieves the all the elements that match the conditions defined by the specified predicate.
Public methodGetEnumerator
Returns an enumerator that iterates through the collection.
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Protected methodIBindingList_AddNew
Adds a new item to the list.
(Overrides ListWithEventsBase..::..IBindingList_AddNew()()()().)
Public methodICollection_CopyTo Obsolete.
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Overrides ListWithEventsBase..::..ICollection_CopyTo(Array, Int32).)
Public methodIEnumerable_GetEnumerator Obsolete.
Returns an enumerator that iterates through a collection.
(Overrides ListWithEventsBase..::..IEnumerable_GetEnumerator()()()().)
Public methodIList_Add Obsolete.
Adds an item to the IList.
(Overrides ListWithEventsBase..::..IList_Add(Object).)
Public methodIndexOf(Object) Obsolete. (Overrides ListWithEventsBase..::..IndexOf(Object).)
Public methodIndexOf(T)
Determines the index of a specific item in the ListWithEvents<(Of <(<'T>)>)>.
Public methodInsert(Int32, Object) Obsolete. (Overrides ListWithEventsBase..::..Insert(Int32, Object).)
Public methodInsert(Int32, T)
Inserts an item to the ListWithEvents<(Of <(<'T>)>)> at the specified index.
Protected methodLock
Sets the Locked to True
(Overrides ListWithEventsBase..::..Lock()()()().)
Public methodLockAllowItemCancel
Sets IsAllowItemCancelLocked, so AllowItemCancel can no longer be changed.
(Overrides ListWithEventsBase..::..LockAllowItemCancel()()()().)
Protected methodOnAdded
Raises Added event
Protected methodOnAdding
Raises Adding event
Protected methodOnCleared
Raises Cleared event
Protected methodOnClearing
Raises Clearing event
Protected methodOnCollectionChanged(ListWithEvents<(Of <<'(T>)>>)..::..ListChangedEventArgs)
Raises the CollectionChanged event.
Protected methodOnCollectionChanged(EventArgs, CollectionChangeAction, T, T, Int32)
Raises the CollectionChanged event via calling OnChanged(ListChangedEventArgs)
Protected methodOnChanged
Raises the Changed event
(Inherited from ListWithEventsBase.)
Protected methodOnINotifyCollectionChanged_CollectionChanged (Inherited from ListWithEventsBase.)
Protected methodOnItemChanged
Raises ItemChanged event
Protected methodOnItemChanging
Raises ItemChanging event
Protected methodOnItemValueChanged
Raises the ItemValueChanged event and handles the Changed event for items
Protected methodOnListChanged
Raises the ListChanged event
(Inherited from ListWithEventsBase.)
Protected methodOnPropertyCnaged
Raises the PropertyChanged()()()() event
(Inherited from ListWithEventsBase.)
Protected methodOnRemoved
Raises Removed event
Protected methodOnRemoving
Raises Removing event
Public methodRemove(Object) Obsolete.
Removes the first occurrence of a specific object from the IList.
(Overrides ListWithEventsBase..::..Remove(Object).)
Public methodRemove(T)
Removes the first occurrence of a specific object from the ListWithEvents<(Of <(<'T>)>)>.
Public methodRemoveAll
Removes all items that matches given predicate
Protected methodRemoveAllItemHandlers
Removes handlers from all item that are of type IReportsChange
Public methodRemoveAt
Removes the ListWithEvents<(Of <(<'T>)>)> item at the specified index.
(Overrides ListWithEventsBase..::..RemoveAt(Int32).)
Protected methodRemoveIndex (Overrides ListWithEventsBase..::..RemoveIndex(PropertyDescriptor).)
Protected methodRemoveItemHandler
Removes handler from item at specified index if the item is IReportsChange
Protected methodRemoveSort (Overrides ListWithEventsBase..::..RemoveSort()()()().)
Public methodToArray
Copies all elements of this collection to new Array
Public methodToArray1 Obsolete.
Copies all elements of this collection to new Array (type-unsafe)
(Overrides ListWithEventsBase..::..ToArray1()()()().)
Protected methodUnlock
Sets the Locked to False
(Overrides ListWithEventsBase..::..Unlock()()()().)

Extension Methods

  NameDescription
Public Extension MethodLast<(Of <<'(T>)>>)
Gets last item in collection
(Defined by CollectionTools.)

Fields

  NameDescription
Protected fieldStatic memberItemsName
Name used for serialization of the InternalList property

Properties

  NameDescription
Public propertyAddingReadOnly
Determines ReadOnly property value for the Adding and ItemChanging events
(Overrides ListWithEventsBase..::..AddingReadOnly.)
Public propertyAllowAddCancelableEventsHandlers
Determines if it is allowed to add handlers for events that supports cancellation
(Overrides ListWithEventsBase..::..AllowAddCancelableEventsHandlers.)
Protected propertyAllowEdit
Gets whether you can update items in the list.
(Overrides ListWithEventsBase..::..AllowEdit.)
Public propertyAllowItemCancel
Gets or sets value indicating if items implementing ICollectionCancelItem are allowed to cancel itselves being added/removed to/from the list.
(Overrides ListWithEventsBase..::..AllowItemCancel.)
Protected propertyAllowRemove
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
(Overrides ListWithEventsBase..::..AllowRemove.)
Public propertyAsReadOnly
Gives read-only access to underlying List()()()()
Public propertyCanAddNew
Gets whether you can add items to the list using AddNew()()()().
(Overrides ListWithEventsBase..::..CanAddNew.)
Public propertyCancelError
Gets value indicating if an OperationCanceledException is thrown when item operation is canceled in event handler.
(Overrides ListWithEventsBase..::..CancelError.)
Public propertyCount
Gets the number of elements contained in the ListWithEvents<(Of <(<'T>)>)>.
(Overrides ListWithEventsBase..::..Count.)
Public propertyIList_Item Obsolete.
Gets or sets the element at the specified index.
(Overrides ListWithEventsBase..::..IList_Item[([( Int32])]) .)
Protected propertyInternalList
Gives access to underlying List()()()()
Public propertyIsAllowItemCancelLocked
Gets value indicationg if value of the AllowItemCancel can be changed
(Overrides ListWithEventsBase..::..IsAllowItemCancelLocked.)
Public propertyIsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Overrides ListWithEventsBase..::..IsFixedSize.)
Public propertyIsReadOnly
Gets a value indicating whether the ListWithEvents<(Of <(<'T>)>)> is read-only (always false).
(Overrides ListWithEventsBase..::..IsReadOnly.)
Protected propertyIsSorted (Overrides ListWithEventsBase..::..IsSorted.)
Public propertyIsSynchronized Obsolete.
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Overrides ListWithEventsBase..::..IsSynchronized.)
Public propertyItem
Gets or sets the element at the specified index.
Public propertyLocked
Determines if the ListWithEvents<(Of <(<'T>)>)> isn locked (being locked prevents if from being edited)
(Overrides ListWithEventsBase..::..Locked.)
Public propertyOwner
Custom property wher owner of the list can be stored to provide bi-directional reference
(Overrides ListWithEventsBase..::..Owner.)
Protected propertySortDirection (Overrides ListWithEventsBase..::..SortDirection.)
Protected propertySortProperty (Overrides ListWithEventsBase..::..SortProperty.)
Protected propertySupportsChangeNotification
Gets whether a ListChanged event is raised when the list changes or an item in the list changes.
(Overrides ListWithEventsBase..::..SupportsChangeNotification.)
Protected propertySupportsSearching
Gets whether the list supports searching using the Find(PropertyDescriptor, Object) method.
(Overrides ListWithEventsBase..::..SupportsSearching.)
Protected propertySupportsSorting
Gets whether the list supports sorting.
(Overrides ListWithEventsBase..::..SupportsSorting.)
Public propertySyncRoot Obsolete.
Gets an object that can be used to synchronize access to the ICollection.
(Overrides ListWithEventsBase..::..SyncRoot.)

Events

  NameDescription
Public eventAdded
Raised after an item is added to the list. Raised by Add(T) and Insert(Int32, T) methods
Public eventAdding
Raised before an item is added to the list. Raised by Add(T) and Insert(Int32, T) methods.
Public eventCleared
Raised after the list is cleared. Raised by Clear()()()() method.
Public eventClearing
Raised before the list is cleared. Raised by Clear()()()() method.
Public eventCollectionChanged
Raised when this ListWithEvents<(Of <(<'T>)>)> collection changes.
Public eventChanged
Raised when value of member changes
(Inherited from ListWithEventsBase.)
Public eventINotifyCollectionChanged_CollectionChanged
Occurs when the collection changes. Implements the CollectionChanged event. This event is provided for compatibility with INotifyCollectionChanged interface. ListWithEvents<(Of <(<'T>)>)> provides CollectionChanged event which provides detailed information about what has with the collection.
(Inherited from ListWithEventsBase.)
Public eventItemChanged
Raised after item in the list is changed. Raised by setter of Item[([( Int32])]) property.
Public eventItemChanging
Raised before an item is changed. Raised by setter of Item[([( Int32])]) property.
Public eventItemValueChanged
Raised when any of items that is of type IReportsChange raises Changed event
Public eventListChanged
Occurs when the list changes or an item in the list changes.
(Inherited from ListWithEventsBase.)
Public eventRemoved
Raised after the list is cleared. Raised by Remove(T) and RemoveAt(Int32) methods.
Public eventRemoving
Raised before item is removed from the list. Raised by Remove(T) and RemoveAt(Int32) methods.

Explicit Interface Implementations

See Also