MicroDataPointCollectionViewBase<T> Class
Represents a base class for collection views into a source collection.
public abstract class MicroDataPointCollectionViewBase<T>
- Type Parameters:
-
T
-
- Inheritance:
- object object
- Derived:
- MicroXYDataPointCollectionView
Constructors
MicroDataPointCollectionViewBase()
Initializes an instance of the class.
protected MicroDataPointCollectionViewBase()
Properties
Collection
Gets or sets the IEnumerable<T> presented by this view.
protected IEnumerable<T> Collection { get; set; }
Property Value
- IEnumerable<T>:
The IEnumerable<T> presented by this view.
Count
Gets the number of records in the view.
public int Count { get; protected set; }
Property Value
- int:
The number of records in the view, or
–1
if the number of records is unknown.
Remarks
If a filter is set, this property value only includes items that pass the filter. If the underlying collection is of type IEnumerable, this is an O(N) operation. This value is cached until the collection changes.
Methods
EnsureInitialized()
Ensures that this instance is currently initialized.
protected void EnsureInitialized()
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<T> GetEnumerator()
Returns
- IEnumerator<T>:
A IEnumerator<T> that can be used to iterate through the collection.
IndexOf(T)
Returns the index at which the specified item is located.
public int IndexOf(T item)
Parameter | Type | Description |
---|---|---|
item | T | The item to locate. |
Returns
- int:
The index at which the specified item is located, or
–1
if the item is unknown.
Initialize()
Initializes this instance.
protected virtual void Initialize()