Gets all items in the SelectedItemsCollection of a specified MapItem type.

Namespace:  ESRI.ArcGISExplorer.Application

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

Syntax

C#
public ReadOnlyCollection<T> GetMapItems<T>()
where T : MapItem
Visual Basic (Declaration)
Public Function GetMapItems(Of T As MapItem) As ReadOnlyCollection(Of T)

Type Parameters

T
A derived MapItem type.

Return Value

A read-only collection of MapItems in the SelectedItemsCollection matching the specified MapItem type. Returns an empty collection if no matching items are found.

Remarks

This method may be used as an alternative to iterating through the items in the collection and checking the Type of each item individually.

Version Information: This method is supported from version 2.0.0.1500.

See Also