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.Int32
|
Item[Int32]
Returns the item at the specified zero-based index in this view.
Declaration
public object this[int index] { get; }
Parameters
System.Int32
index
The zero-based index at which the item is located. |
Property Value
System.Object
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.Object
newItem
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.IDisposable
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.Int32
index
The zero-based index at which the item is located. |
Returns
System.Object
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.Object
item
The object to look for in the collection. |
Returns
System.Int32
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.Collections.Specialized.NotifyCollectionChangedEventArgs
e
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.Type
managerType
The type of the WeakEventManager calling this method. |
System.Object
sender
Object that originated the event. |
System.EventArgs
e
Event data. |
Returns
System.Boolean
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. |