MapTools¶
Namespace: ThinkGeo.Core
Contains the different map tools as properties and acts as an entrance for setting these map controls.
public class MapTools : GeoCollection`1, System.Collections.Generic.IList`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=14.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.ICollection`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=14.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IEnumerable`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=14.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEnumerable, System.Collections.IList, System.Collections.ICollection, System.Collections.Generic.IReadOnlyList`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=14.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IReadOnlyCollection`1[[ThinkGeo.Core.MapTool, ThinkGeo.UI.Wpf, Version=14.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Specialized.INotifyCollectionChanged, System.ComponentModel.INotifyPropertyChanged
Inheritance Object → Collection<MapTool> → GeoCollection<MapTool> → MapTools
Implements IList<MapTool>, ICollection<MapTool>, IEnumerable<MapTool>, IEnumerable, IList, ICollection, IReadOnlyList<MapTool>, IReadOnlyCollection<MapTool>, INotifyCollectionChanged, INotifyPropertyChanged
Remarks:
This class is designed to be easy to use. It contains all the available tools of the map. You can find and set those map tools easily by using this class.
Properties¶
Logo¶
Gets a shortcut of LogoMapTool object.
public LogoMapTool Logo { get; }
Property Value¶
MouseCoordinate¶
Gets a shortcut of MouseCoordinate object.
public MouseCoordinateMapTool MouseCoordinate { get; }
Property Value¶
PanZoomBar¶
Gets a shortcut of PanZoomBar object.
public PanZoomBarMapTool PanZoomBar { get; }
Property Value¶
ScaleLine¶
Gets a shortcut of ScaleLine object.
public ScaleLineMapTool ScaleLine { get; }
Property Value¶
Item¶
public MapTool Item { get; set; }
Property Value¶
Count¶
public int Count { get; }
Property Value¶
Item¶
public MapTool Item { get; set; }
Property Value¶
Constructors¶
MapTools()¶
Constructor of MapTools class.
public MapTools()
MapTools(MapViewBase)¶
Constructor of MapTools class.
public MapTools(MapViewBase mapView)
Parameters¶
mapView
MapViewBase
A WpfMap object that all map tools in this object is based on.
Methods¶
Refresh()¶
Refreshes all the map tools objects maintaining in the MapTools object.
public void Refresh()
Finalize()¶
protected void Finalize()
Events¶
Inserting¶
public event EventHandler<InsertingGeoCollectionEventArgs> Inserting;
Inserted¶
public event EventHandler<InsertedGeoCollectionEventArgs> Inserted;
Removing¶
public event EventHandler<RemovingGeoCollectionEventArgs> Removing;
Removed¶
public event EventHandler<RemovedGeoCollectionEventArgs> Removed;
Adding¶
public event EventHandler<AddingGeoCollectionEventArgs> Adding;
Added¶
public event EventHandler<AddedGeoCollectionEventArgs> Added;
ClearingItems¶
public event EventHandler<ClearingItemsGeoCollectionEventArgs> ClearingItems;
ClearedItems¶
public event EventHandler<ClearedItemsGeoCollectionEventArgs> ClearedItems;
MovedItem¶
public event EventHandler<MovedItemGeoCollectionEventArgs> MovedItem;
CollectionChanged¶
public event NotifyCollectionChangedEventHandler CollectionChanged;
PropertyChanged¶
public event PropertyChangedEventHandler PropertyChanged;