MapTools¶
Namespace: ThinkGeo.UI.Maui
Provides a collection of map tools that are attached to a MapView.
public class MapTools : System.Collections.ObjectModel.Collection`1[[ThinkGeo.UI.Maui.IMapTool, ThinkGeo.UI.Maui, Version=14.5.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207]], System.Collections.Generic.ICollection`1[[ThinkGeo.UI.Maui.IMapTool, ThinkGeo.UI.Maui, Version=14.5.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207]], System.Collections.Generic.IEnumerable`1[[ThinkGeo.UI.Maui.IMapTool, ThinkGeo.UI.Maui, Version=14.5.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207]], System.Collections.IEnumerable, System.Collections.Generic.IList`1[[ThinkGeo.UI.Maui.IMapTool, ThinkGeo.UI.Maui, Version=14.5.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207]], System.Collections.Generic.IReadOnlyCollection`1[[ThinkGeo.UI.Maui.IMapTool, ThinkGeo.UI.Maui, Version=14.5.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207]], System.Collections.Generic.IReadOnlyList`1[[ThinkGeo.UI.Maui.IMapTool, ThinkGeo.UI.Maui, Version=14.5.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207]], System.Collections.ICollection, System.Collections.IList
Inheritance object → Collection<IMapTool> → MapTools
Implements ICollection<IMapTool>, IEnumerable<IMapTool>, IEnumerable, IList<IMapTool>, IReadOnlyCollection<IMapTool>, IReadOnlyList<IMapTool>, ICollection, IList
Remarks:
Use this collection to add or remove interactive tools displayed on the map.
Properties¶
Count¶
public int Count { get; }
Property Value¶
Item¶
public IMapTool Item { get; set; }
Property Value¶
Constructors¶
MapTools(MapView)¶
Provides a collection of map tools that are attached to a MapView.
public MapTools(MapView mapView)
Parameters¶
mapView MapView
The map view that hosts the tools in the collection.
Remarks:
Use this collection to add or remove interactive tools displayed on the map.
Methods¶
InsertItem(int, IMapTool)¶
Inserts a map tool into the collection and attaches it to the map view.
protected void InsertItem(int index, IMapTool item)
Parameters¶
index int
The index at which to insert the tool.
item IMapTool
The tool being inserted.
Returns¶
RemoveItem(int)¶
Removes a map tool from the collection and detaches it from the map view.
protected void RemoveItem(int index)
Parameters¶
index int
The index of the tool to remove.