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

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

Constructors

  NameDescription
ListWithEvents<(Of <(T>)>)Overloaded.

Methods

  NameDescription
AddOverloaded.
AddAllItemHandlers
Adds ahndlers to all items that as of type IReportsChange
AddIndex (Overrides ListWithEventsBase..::.AddIndex(PropertyDescriptor).)
AddItemHandler
Adds handler to item at specified index if the item is IReportsChange
AddNew
Adds a new item to the list.
AddRange
Adds range of items into list
ApplySort (Overrides ListWithEventsBase..::.ApplySort(PropertyDescriptor, ListSortDirection).)
Clear
Removes all items from the ListWithEvents<(Of <(T>)>).
(Overrides ListWithEventsBase..::.Clear()()().)
ContainsOverloaded.
CopyTo
Copies the elements of the ListWithEvents<(Of <(T>)>) to an Array, starting at a particular Array index.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Find (Overrides ListWithEventsBase..::.Find(PropertyDescriptor, Object).)
FindAll
Retrieves the all the elements that match the conditions defined by the specified predicate.
GetEnumerator
Returns an enumerator that iterates through the collection.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
IBindingList_AddNew
Adds a new item to the list.
(Overrides ListWithEventsBase..::.IBindingList_AddNew()()().)
ICollection_CopyTo Obsolete.
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Overrides ListWithEventsBase..::.ICollection_CopyTo(Array, Int32).)
IEnumerable_GetEnumerator Obsolete.
Returns an enumerator that iterates through a collection.
(Overrides ListWithEventsBase..::.IEnumerable_GetEnumerator()()().)
IndexOfOverloaded.
InsertOverloaded.
Lock
Sets the Locked to True
(Overrides ListWithEventsBase..::.Lock()()().)
LockAllowItemCancel
Sets IsAllowItemCancelLocked, so AllowItemCancel can no longer be changed.
(Overrides ListWithEventsBase..::.LockAllowItemCancel()()().)
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnAdded
Raises Added event
OnAdding
Raises Adding event
OnCleared
Raises Cleared event
OnClearing
Raises Clearing event
OnCollectionChangedOverloaded.
OnChanged
Raises the Changed event
(Inherited from ListWithEventsBase.)
OnItemChanged
Raises ItemChanged event
OnItemChanging
Raises ItemChanging event
OnItemValueChanged
Raises the ItemValueChanged event and handles the Changed event for items
OnListChanged
Raises the ListChanged event
(Inherited from ListWithEventsBase.)
OnPropertyCnaged
Raises the PropertyChanged()()() event
(Inherited from ListWithEventsBase.)
OnRemoved
Raises Removed event
OnRemoving
Raises Removing event
RemoveOverloaded.
RemoveAll
Removes all items that matches given predicate
RemoveAllItemHandlers
Removes handlers from all item that are of type IReportsChange
RemoveAt
Removes the ListWithEvents<(Of <(T>)>) item at the specified index.
(Overrides ListWithEventsBase..::.RemoveAt(Int32).)
RemoveIndex (Overrides ListWithEventsBase..::.RemoveIndex(PropertyDescriptor).)
RemoveItemHandler
Removes handler from item at specified index if the item is IReportsChange
RemoveSort (Overrides ListWithEventsBase..::.RemoveSort()()().)
ToArray
Copies all elements of this collection to new Array
ToArray1 Obsolete.
Copies all elements of this collection to new Array (type-unsafe)
(Overrides ListWithEventsBase..::.ToArray1()()().)
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Unlock
Sets the Locked to False
(Overrides ListWithEventsBase..::.Unlock()()().)

Fields

  NameDescription
ItemsName
Name used for serialization of the InternalList property

Properties

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

Events

  NameDescription
Added
Raised after an item is added to the list. Raised by Add(T) and Insert(Int32, T) methods
Adding
Raised before an item is added to the list. Raised by Add(T) and Insert(Int32, T) methods.
Cleared
Raised after the list is cleared. Raised by Clear()()() method.
Clearing
Raised before the list is cleared. Raised by Clear()()() method.
CollectionChanged
Raised when this ListWithEvents<(Of <(T>)>) collection changes.
Changed
Raised when value of member changes
(Inherited from ListWithEventsBase.)
ItemChanged
Raised after item in the list is changed. Raised by setter of Item[([(Int32])]) property.
ItemChanging
Raised before an item is changed. Raised by setter of Item[([(Int32])]) property.
ItemValueChanged
Raised when any of items that is of type IReportsChange raises Changed event
ListChanged
Occurs when the list changes or an item in the list changes.
(Inherited from ListWithEventsBase.)
Removed
Raised after the list is cleared. Raised by Remove(T) and RemoveAt(Int32) methods.
Removing
Raised before item is removed from the list. Raised by Remove(T) and RemoveAt(Int32) methods.

Explicit Interface Implementations

See Also