ExtendedBindingList<T> Class

This is a generic, bindable base class used to hold a collection of items and supports various useful features such as sorting and searching.

Definition

Namespace: EWSoftware.PDI.Binding
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
public class ExtendedBindingList<T> : BindingList<T>
where T : ICloneable
Inheritance
Object    Collection<T>    BindingList<T>    ExtendedBindingList<T>
Derived
More

Type Parameters

T
The object type contained in the collection

Constructors

ExtendedBindingList<T>() Default constructor
ExtendedBindingList<T>(IList<T>) Construct the collection using the specified list of items

Properties

AllowEditGets or sets a value indicating whether items in the list can be edited.
(Inherited from BindingList<T>)
AllowNewGets or sets a value indicating whether you can add items to the list using the AddNew() method.
(Inherited from BindingList<T>)
AllowRemoveGets or sets a value indicating whether you can remove items from the collection.
(Inherited from BindingList<T>)
CountGets the number of elements actually contained in the Collection<T>.
(Inherited from Collection<T>)
IsSortedCore This returns a flag indicating whether or not sorting is currently applied
(Overrides BindingList<T>.IsSortedCore)
ItemGets or sets the element at the specified index.
(Inherited from Collection<T>)
ItemsGets a IList<T> wrapper around the Collection<T>.
(Inherited from Collection<T>)
RaiseListChangedEventsGets or sets a value indicating whether adding or removing items within the list raises ListChanged events.
(Inherited from BindingList<T>)
SortDirectionCore This returns the current sort direction if sorting has been applied
(Overrides BindingList<T>.SortDirectionCore)
SortPropertyCore This returns the current property descriptor if sorting has been applied
(Overrides BindingList<T>.SortPropertyCore)
SupportsChangeNotificationCoreGets a value indicating whether ListChanged events are enabled.
(Inherited from BindingList<T>)
SupportsSearchingCore This is used to indicate whether or not searching is supported
(Overrides BindingList<T>.SupportsSearchingCore)
SupportsSortingCore This is used to indicate whether or not sorting is supported
(Overrides BindingList<T>.SupportsSortingCore)
SyncRoot This returns an object that can be used to synchronize access to the collection

Methods

AddAdds an object to the end of the Collection<T>.
(Inherited from Collection<T>)
AddNewAdds a new item to the collection.
(Inherited from BindingList<T>)
AddNewCoreAdds a new item to the end of the collection.
(Inherited from BindingList<T>)
AddRange Add a range of items from an array
ApplySortCore This is overridden to apply a sort based on the selected property descriptor and sort direction
(Overrides BindingList<T>.ApplySortCore(PropertyDescriptor, ListSortDirection))
CancelNewDiscards a pending new item.
(Inherited from BindingList<T>)
ClearRemoves all elements from the Collection<T>.
(Inherited from Collection<T>)
ClearItemsRemoves all elements from the collection.
(Inherited from BindingList<T>)
CloneRange Clone and add a range of items from an enumerable list of items
ContainsDetermines whether an element is in the Collection<T>.
(Inherited from Collection<T>)
CopyToCopies the entire Collection<T> to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from Collection<T>)
EndNewCommits a pending new item to the collection.
(Inherited from BindingList<T>)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Exists Determine whether or not the collection contains at least one item that matches the conditions in the specified predicate.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Find Search the collection for the first item that matches the conditions in the specified predicate
FindAll Retrieve all of the items that match the conditions defined by the specified predicate
FindCore This searches for the index of the item that has the specified property descriptor with the specified value.
(Overrides BindingList<T>.FindCore(PropertyDescriptor, Object))
FindIndex(Predicate<T>) Search for the first item that matches the conditions defined by the specified predicate and return its zero-based index.
FindIndex(Int32, Predicate<T>) Search for the first item that matches the conditions defined by the specified predicate between the starting index and the end of the collection and return its zero-based index.
FindIndex(Int32, Int32, Predicate<T>) Search for the first item that matches the conditions defined by the specified predicate between the starting index and the given number of items and return its zero-based index.
FindLast Search the collection for the last item that matches the conditions in the specified predicate
FindLastIndex(Predicate<T>) Search for the last item that matches the conditions defined by the specified predicate and return its zero-based index.
FindLastIndex(Int32, Predicate<T>) Search for the last item that matches the conditions defined by the specified predicate between the starting index and searching backwards to the start of the collection and return its zero-based index.
FindLastIndex(Int32, Int32, Predicate<T>) Search for the last item that matches the conditions defined by the specified predicate between the starting index and searching backwards for the given number of items and return its zero-based index.
ForEach Performs the specified action on each item in the collection
GetEnumeratorReturns an enumerator that iterates through the Collection<T>.
(Inherited from Collection<T>)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOfSearches for the specified object and returns the zero-based index of the first occurrence within the entire Collection<T>.
(Inherited from Collection<T>)
InsertInserts an element into the Collection<T> at the specified index.
(Inherited from Collection<T>)
InsertItemInserts the specified item in the list at the specified index.
(Inherited from BindingList<T>)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnAddingNewRaises the AddingNew event.
(Inherited from BindingList<T>)
OnListChangedRaises the ListChanged event.
(Inherited from BindingList<T>)
RemoveRemoves the first occurrence of a specific object from the Collection<T>.
(Inherited from Collection<T>)
RemoveAll Remove all items that match the conditions defined by the specified predicate
RemoveAtRemoves the element at the specified index of the Collection<T>.
(Inherited from Collection<T>)
RemoveItemRemoves the item at the specified index.
(Inherited from BindingList<T>)
RemoveRange Remove the specified range of items from the collection
RemoveSortCore This is used to remove the sort
(Overrides BindingList<T>.RemoveSortCore())
ResetBindingsRaises a ListChanged event of type Reset.
(Inherited from BindingList<T>)
ResetItemRaises a ListChanged event of type ItemChanged for the item at the specified position.
(Inherited from BindingList<T>)
SetItemReplaces the item at the specified index with the specified item.
(Inherited from BindingList<T>)
Sort() Sort the items in the collection using the default comparer
Sort(Comparison<T>) Sort the items in the collection using the specified Comparison<T> delegate
Sort(IComparer<T>) Sort the items in the collection using the specified comparer
ToStringReturns a string that represents the current object.
(Inherited from Object)
TrueForAll Determine if every item in the collection matches the conditions defined by the specified predicate

Events

AddingNewOccurs before an item is added to the list.
(Inherited from BindingList<T>)
ListChangedOccurs when the list or an item in the list changes.
(Inherited from BindingList<T>)

See Also