TelephonePropertyCollection Class

A type-safe collection of TelephoneProperty objects

Definition

Namespace: EWSoftware.PDI.Properties
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public class TelephonePropertyCollection : ExtendedBindingList<TelephoneProperty>
Inheritance
Object    CollectionTelephoneProperty    BindingListTelephoneProperty    ExtendedBindingListTelephoneProperty    TelephonePropertyCollection

Remarks

The class has a type-safe enumerator

Constructors

TelephonePropertyCollection Default constructor
TelephonePropertyCollection(IListTelephoneProperty) Construct the collection using a list of TelephoneProperty objects

Properties

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

Methods

Add(String) Add a TelephoneProperty to the collection and assign it the specified value
Add(T)Adds an object to the end of the CollectionT.
(Inherited from CollectionTelephoneProperty)
Add(PhoneTypes, String) Add a TelephoneProperty to the collection and assign it the specified value and type(s)
AddNewAdds a new item to the collection.
(Inherited from BindingListTelephoneProperty)
AddNewCoreAdds a new item to the end of the collection.
(Inherited from BindingListTelephoneProperty)
AddRange Add a range of items from an array
(Inherited from ExtendedBindingListT)
ApplySortCore This is overridden to apply a sort based on the selected property descriptor and sort direction
(Inherited from ExtendedBindingListT)
CancelNewDiscards a pending new item.
(Inherited from BindingListTelephoneProperty)
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionTelephoneProperty)
ClearItemsRemoves all elements from the collection.
(Inherited from BindingListTelephoneProperty)
CloneRange Clone and add a range of items from an enumerable list of items
(Inherited from ExtendedBindingListT)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionTelephoneProperty)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionTelephoneProperty)
EndNewCommits a pending new item to the collection.
(Inherited from BindingListTelephoneProperty)
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.
(Inherited from ExtendedBindingListT)
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
(Inherited from ExtendedBindingListT)
FindAll Retrieve all of the items that match the conditions defined by the specified predicate
(Inherited from ExtendedBindingListT)
FindCore This searches for the index of the item that has the specified property descriptor with the specified value.
(Inherited from ExtendedBindingListT)
FindFirstByType This method can be used to find the first phone number that has one of the specified phone types
FindIndex(PredicateT) Search for the first item that matches the conditions defined by the specified predicate and return its zero-based index.
(Inherited from ExtendedBindingListT)
FindIndex(Int32, PredicateT) 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.
(Inherited from ExtendedBindingListT)
FindIndex(Int32, Int32, PredicateT) 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.
(Inherited from ExtendedBindingListT)
FindLast Search the collection for the last item that matches the conditions in the specified predicate
(Inherited from ExtendedBindingListT)
FindLastIndex(PredicateT) Search for the last item that matches the conditions defined by the specified predicate and return its zero-based index.
(Inherited from ExtendedBindingListT)
FindLastIndex(Int32, PredicateT) 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.
(Inherited from ExtendedBindingListT)
FindLastIndex(Int32, Int32, PredicateT) 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.
(Inherited from ExtendedBindingListT)
ForEach Performs the specified action on each item in the collection
(Inherited from ExtendedBindingListT)
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionTelephoneProperty)
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 CollectionT.
(Inherited from CollectionTelephoneProperty)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionTelephoneProperty)
InsertItemInserts the specified item in the list at the specified index.
(Inherited from BindingListTelephoneProperty)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnAddingNewRaises the AddingNew event.
(Inherited from BindingListTelephoneProperty)
OnListChangedRaises the ListChanged event.
(Inherited from BindingListTelephoneProperty)
PropagateVersion This is used to propagate a common version to all objects in the collection
RemoveRemoves the first occurrence of a specific object from the CollectionT.
(Inherited from CollectionTelephoneProperty)
RemoveAll Remove all items that match the conditions defined by the specified predicate
(Inherited from ExtendedBindingListT)
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionTelephoneProperty)
RemoveItemRemoves the item at the specified index.
(Inherited from BindingListTelephoneProperty)
RemoveRange Remove the specified range of items from the collection
(Inherited from ExtendedBindingListT)
RemoveSortCore This is used to remove the sort
(Inherited from ExtendedBindingListT)
ResetBindingsRaises a ListChanged event of type Reset.
(Inherited from BindingListTelephoneProperty)
ResetItemRaises a ListChanged event of type ItemChanged for the item at the specified position.
(Inherited from BindingListTelephoneProperty)
SetItemReplaces the item at the specified index with the specified item.
(Inherited from BindingListTelephoneProperty)
SetPreferred(Int32) This can be used to set one phone number as the preferred phone number
SetPreferred(TelephoneProperty) This can be used to set one phone number as the preferred phone number
Sort Sort the items in the collection using the default comparer
(Inherited from ExtendedBindingListT)
Sort(ComparisonT) Sort the items in the collection using the specified ComparisonT delegate
(Inherited from ExtendedBindingListT)
Sort(IComparerT) Sort the items in the collection using the specified comparer
(Inherited from ExtendedBindingListT)
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
(Inherited from ExtendedBindingListT)

Events

AddingNewOccurs before an item is added to the list.
(Inherited from BindingListTelephoneProperty)
ListChangedOccurs when the list or an item in the list changes.
(Inherited from BindingListTelephoneProperty)

See Also