Exposes the items owned by a heat map definition and synchronizes each item's owner with collection changes.
Definition
Namespace:Telerik.WinControls.UI.HeatMap
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class HeatMapDataItemCollection : IList, ICollection, IEnumerable, INotifyCollectionChanged
Inheritance: objectHeatMapDataItemCollection
Implements:
Constructors
Creates a collection backed by the specified definition's list source.
public HeatMapDataItemCollection(HeatMapDefinition owner)
The definition that owns the collection and its items.
Properties
Gets the number of items in the definition's current collection view.
public int Count { get; }
Implements:
Gets whether the collection has a fixed size; this collection always reports false.
public bool IsFixedSize { get; }
Implements:
Gets whether the underlying list source reports that its items are read-only.
public bool IsReadOnly { get; }
Implements:
Gets whether the underlying list source reports synchronized access.
public bool IsSynchronized { get; }
Implements:
Gets the synchronization object exposed by the underlying list source.
public object SyncRoot { get; }
Implements:
Gets or replaces the item at a position in the definition's current collection view.
public HeatMapDataItem this[int index] { get; set; }
The position of the item.
Methods
Adds an item, moving it from its previous definition when it already has an owner.
public void Add(HeatMapDataItem item)
The item to add.
Exceptions: InvalidOperationExceptionThe definition's list source is data-bound.
Adds all supplied items inside a single update batch.
public virtual void AddRange(params HeatMapDataItem[] HeatMapDataItems)
The items to add.
Exceptions: InvalidOperationExceptionThe definition's list source is data-bound.
Suspends collection-view updates until the matching EndUpdate() call.
public void BeginUpdate()
Clears the collection and removes the owner association from each item.
public void Clear()
Implements:
Determines whether the definition's current collection view contains an item.
public bool Contains(HeatMapDataItem item)
The item to locate.
Returns:Determines whether an object value is a heat map item in the current collection view.
public bool Contains(object value)
The object to locate.
Returns:true if value is a contained HeatMapDataItem; otherwise, false.
Implements:
Copies the items in the current collection view into an array.
public void CopyTo(HeatMapDataItem[] array, int arrayIndex)
The destination array.
arrayIndexintThe zero-based destination index.
Completes one update level; ending the final level publishes pending changes as a reset notification.
public void EndUpdate()
Returns an enumerator over the definition's current collection view.
public IEnumerator<HeatMapDataItem> GetEnumerator()
IEnumerator<HeatMapDataItem>
An enumerator for the items in the view.
Gets the position of an item in the definition's current collection view.
public int IndexOf(HeatMapDataItem item)
The item to locate.
Returns:The zero-based view index, or -1 if the item is not in the view.
Inserts an item at the specified position, transferring it from another definition if necessary.
public void Insert(int index, HeatMapDataItem item)
The position at which to insert the item.
itemHeatMapDataItemThe item to insert.
Exceptions: InvalidOperationExceptionThe definition's list source is data-bound.
Raises CollectionChanged with the supplied collection-view change.
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
The change details forwarded by the underlying collection view.
Removes an item from the list source and clears its owner association.
public bool Remove(HeatMapDataItem item)
The item to remove.
Returns:true if the list source contained and removed the item; otherwise, false.
The item's owner is cleared even when it was not present in this collection.
Removes an object when it is a heat map item; objects of other types are ignored.
Removes the item at the specified position in the current collection view.
public void RemoveAt(int index)
The position of the item to remove.
Implements:
Events
Occurs after the definition's list-source view changes and item owner associations are updated.
public event NotifyCollectionChangedEventHandler CollectionChanged
Implements: