Class MapItemsCollection
Represents collection of the visualization layer items.
Inheritance
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public class MapItemsCollection : ObservableCollection<object>, IWeakEventListener
Properties
Count
Gets the number of elements actually contained in the collection.
Declaration
public int Count { get; }
Property Value
System.
|
Item[Int32]
Returns the item at the specified zero-based index in this view.
Declaration
public object this[int index] { get; }
Parameters
System. The zero-based index at which the item is located. |
Property Value
System. The item at the specified zero-based index in this view. |
Methods
Add(Object)
Add new item to the collection.
Declaration
public void Add(object newItem)
Parameters
System. Item to add. |
DeferRefresh()
Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Declaration
public IDisposable DeferRefresh()
Returns
System. An IDisposable object that you can use to dispose of the calling object. |
GetItemAt(Int32)
Returns the item at the specified zero-based index in this view.
Declaration
public object GetItemAt(int index)
Parameters
System. The zero-based index at which the item is located. |
Returns
System. The item at the specified zero-based index in this view. |
IndexOf(Object)
Returns the index in this collection where the specified item is located.
Declaration
public int IndexOf(object item)
Parameters
System. The object to look for in the collection. |
Returns
System. The index of the item in the collection, or -1 if the item does not exist in the collection. |
OnCollectionChanged(NotifyCollectionChangedEventArgs)
Raises the CollectionChanged event with the provided event data.
Declaration
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
System. The event data to report in the event. |
ReceiveWeakEvent(Type, Object, EventArgs)
Receives events from the centralized event manager.
Declaration
public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
Parameters
System. The type of the WeakEventManager calling this method. |
System. Object that originated the event. |
System. Event data. |
Returns
System. true if the listener handled the event. It is considered an error by the WeakEventManager handling in WPF to register a listener for an event that the listener does not handle. Regardless, the method should return false if it receives an event that it does not recognize or handle. |