Initializes a new instance of the MapItemCollection class and adds the specified MapItems to the end of collection.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public MapItemCollection(
	IEnumerable<MapItem> mapItems
)
Visual Basic (Declaration)
Public Sub New ( _
	mapItems As IEnumerable(Of MapItem) _
)

Parameters

mapItems
Type: System.Collections.Generic..::.IEnumerable<(Of <(MapItem>)>)

An enumerable set containing MapItem objects.

Remarks

It may be useful to create a MapItemCollection object if you want store a collection of MapItems internally or when using either the Add or the AddFirst methods to add several MapItems to the Map. Note that the Map has an associated MapItemCollection which can be accessed using ChildItems property.

See Also