Class
MapItemsCollection

Represents collection of the visualization layer items.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public class MapItemsCollection : ObservableCollection<object>, IList<object>, ICollection<object>, IList, ICollection, IReadOnlyList<object>, IReadOnlyCollection<object>, IEnumerable<object>, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged, IWeakEventListener

Inheritance: objectCollection<object>ObservableCollection<object>MapItemsCollection

Implements: ICollectionICollection<object>IEnumerableIEnumerable<object>IListIList<object>INotifyCollectionChangedINotifyPropertyChangedIReadOnlyCollection<object>IReadOnlyList<object>IWeakEventListener

Inherited Members ObservableCollection<object>.Move(int, int)ObservableCollection<object>.ClearItems()ObservableCollection<object>.RemoveItem(int)ObservableCollection<object>.InsertItem(int, object)ObservableCollection<object>.SetItem(int, object)ObservableCollection<object>.MoveItem(int, int)ObservableCollection<object>.OnPropertyChanged(PropertyChangedEventArgs)ObservableCollection<object>.BlockReentrancy()ObservableCollection<object>.CheckReentrancy()ObservableCollection<object>.CollectionChangedObservableCollection<object>.PropertyChangedCollection<object>.Clear()Collection<object>.CopyTo(object[], int)Collection<object>.Contains(object)Collection<object>.GetEnumerator()Collection<object>.Insert(int, object)Collection<object>.Remove(object)Collection<object>.RemoveAt(int)Collection<object>.Items

Properties

Count

Gets the number of elements actually contained in the collection.

Declaration

cs-api-definition
public int Count { get; }

Property Value

int

this[int]

Returns the item at the specified zero-based index in this view.

Declaration

cs-api-definition
public object this[int index] { get; }

Parameters

index

int

The zero-based index at which the item is located.

Property Value

object

The item at the specified zero-based index in this view.

Methods

Add(object)

Add new item to the collection.

Declaration

cs-api-definition
public void Add(object newItem)

Parameters

newItem

object

Item to add.

DeferRefresh()

Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.

Declaration

cs-api-definition
public IDisposable DeferRefresh()

Returns

IDisposable

An IDisposable object that you can use to dispose of the calling object.

GetItemAt(int)

Returns the item at the specified zero-based index in this view.

Declaration

cs-api-definition
public object GetItemAt(int index)

Parameters

index

int

The zero-based index at which the item is located.

Returns

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

cs-api-definition
public int IndexOf(object item)

Parameters

item

object

The object to look for in the collection.

Returns

int

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

cs-api-definition
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)

Parameters

e

NotifyCollectionChangedEventArgs

The event data to report in the event.

Overrides ObservableCollection<object>.OnCollectionChanged(NotifyCollectionChangedEventArgs)

ReceiveWeakEvent(Type, object, EventArgs)

Receives events from the centralized event manager.

Declaration

cs-api-definition
public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)

Parameters

managerType

Type

The type of the WeakEventManager calling this method.

sender

object

Object that originated the event.

e

EventArgs

Event data.

Returns

bool

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.