AntCollection Class

This class largely mirrors AntDeviceCollection but is designed specifically to be integrated into an application via dependency injection.

Definition

Namespace: SmallEarthTech.AntPlus.Extensions.Hosting
Assembly: SmallEarthTech.AntPlus.Extensions.Hosting (in SmallEarthTech.AntPlus.Extensions.Hosting.dll) Version: 1.1.0.0+c05bd17c9aeef16f18715dc523820c84b7d5372d
C#
public class AntCollection : ObservableCollection<AntDevice>, 
	IDisposable
Inheritance
Object    CollectionAntDevice    ObservableCollectionAntDevice    AntCollection
Implements
IDisposable

Constructors

AntCollection Initializes a new instance of the AntCollection class. The ANT radio is initialized for continuous scan mode.

Properties

CountGets the number of elements actually contained in the CollectionT.
(Inherited from CollectionAntDevice)
ItemGets or sets the element at the specified index.
(Inherited from CollectionAntDevice)
ItemsGets a IListT wrapper around the CollectionT.
(Inherited from CollectionAntDevice)

Methods

AddAdds the specified AntDevice to the end of the collection.
BlockReentrancyDisallows reentrant attempts to change this collection.
(Inherited from ObservableCollectionAntDevice)
CheckReentrancyChecks for reentrant attempts to change this collection.
(Inherited from ObservableCollectionAntDevice)
ClearRemoves all elements from the CollectionT.
(Inherited from CollectionAntDevice)
ClearItemsRemoves all items from the collection.
(Inherited from ObservableCollectionAntDevice)
ContainsDetermines whether an element is in the CollectionT.
(Inherited from CollectionAntDevice)
CopyToCopies the entire CollectionT to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from CollectionAntDevice)
Dispose Release the ANT channels.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetEnumeratorReturns an enumerator that iterates through the CollectionT.
(Inherited from CollectionAntDevice)
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 CollectionAntDevice)
InsertInserts an element into the CollectionT at the specified index.
(Inherited from CollectionAntDevice)
InsertItemInserts an item into the collection at the specified index.
(Inherited from ObservableCollectionAntDevice)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
MoveMoves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionAntDevice)
MoveItemMoves the item at the specified index to a new location in the collection.
(Inherited from ObservableCollectionAntDevice)
OnCollectionChangedRaises the CollectionChanged event with the provided arguments.
(Inherited from ObservableCollectionAntDevice)
OnPropertyChangedRaises the PropertyChanged event with the provided arguments.
(Inherited from ObservableCollectionAntDevice)
RemoveRemoves the specified AntDevice from the collection.
RemoveAtRemoves the element at the specified index of the CollectionT.
(Inherited from CollectionAntDevice)
RemoveItemRemoves the item at the specified index of the collection.
(Inherited from ObservableCollectionAntDevice)
SetItemReplaces the element at the specified index.
(Inherited from ObservableCollectionAntDevice)
StartScanning Initializes the ANT radio for continuous scan mode and setup ANT channels for use by this collection.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

CollectionChangedOccurs when an item is added, removed, or moved, or the entire list is refreshed.
(Inherited from ObservableCollectionAntDevice)
PropertyChangedOccurs when a property value changes.
(Inherited from ObservableCollectionAntDevice)

Fields

CollectionLock The collection lock typically used by WPF applications to synchronize UI updates when devices are added or removed from the collection. For example, in the code behind for a window that is using this collection would include the following line in its constructor -
C#
BindingOperations.EnableCollectionSynchronization(viewModel.AntDevices, viewModel.AntDevices.CollectionLock);

See Also