[This is preliminary documentation and is subject to change.]
The ListWithEvents<(Of <(<'T>)>)> type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ListWithEvents<(Of <(<'T>)>)>(Boolean, Boolean) | CTor | |
| ListWithEvents<(Of <(<'T>)>)>(SerializationInfo, StreamingContext) | CTor - deserializes ListWithEvents<(Of <(<'T>)>)> | |
| ListWithEvents<(Of <(<'T>)>)>(IEnumerable<(Of <<'(T>)>>), Boolean, Boolean) | CTor - initializes from another IEnumerable<(Of <(<'T>)>)> | |
| ListWithEvents<(Of <(<'T>)>)>(Int32, Boolean, Boolean) | Initializes a new instance of the ListWithEvents<(Of <(<'T>)>)> class that is empty and has the specified initial capacity. |
Methods
Extension Methods
| Name | Description | |
|---|---|---|
| Last<(Of <<'(T>)>>) | Gets last item in collection (Defined by CollectionTools.) |
Fields
| Name | Description | |
|---|---|---|
| ItemsName | Name used for serialization of the InternalList property |
Properties
| Name | Description | |
|---|---|---|
| AddingReadOnly | (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 | Throws NotSupportedException (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 | Throws NotSupportedException (Overrides ListWithEventsBase..::..SortDirection.) | |
| SortProperty | Throws NotSupportedException (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
| Name | Description | |
|---|---|---|
| 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.) | |
| INotifyCollectionChanged_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.) | |
| 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
| Name | Description | |
|---|---|---|
| INotifyPropertyChanged..::..PropertyChanged | (Inherited from ListWithEventsBase.) |