ArcGIS Pro 2.8 API Reference Guide
MapTool Class Members
Properties  Methods  Events


ArcGIS.Desktop.Mapping Namespace : MapTool Class

The following tables list the members exposed by MapTool.

Public Properties
 NameDescription
Public Property Gets or sets the command label as it appears in the ribbon and customize dialog. (Inherited from ArcGIS.Desktop.Framework.Contracts.PlugIn)
Public Property Gets or sets the mouse pointer for this tool. (Inherited from ArcGIS.Desktop.Framework.Contracts.Tool)
Public PropertyGets or sets the supplementary text that appears with the Tooltip only when the command is disabled. (Inherited from ArcGIS.Desktop.Framework.Contracts.PlugIn)
Public Property Gets or sets a boolean to specify whether the control is enabled. (Inherited from ArcGIS.Desktop.Framework.Contracts.PlugIn)
Public PropertyGets or sets whether the ArcGIS.Desktop.Framework.Contracts.Button is checked. (Inherited from ArcGIS.Desktop.Framework.Contracts.Button)
Public Property Gets or sets the large representation of the command, this may be an image or a xaml element. (Inherited from ArcGIS.Desktop.Framework.Contracts.PlugIn)
Public Property Gets or sets the small representation of the command, this may be an image or a xaml element. (Inherited from ArcGIS.Desktop.Framework.Contracts.PlugIn)
Public Property Gets or sets a brief description of the command that appears in a small pop-up window when a user pauses the mouse pointer over an element, such as over a Button. (Inherited from ArcGIS.Desktop.Framework.Contracts.PlugIn)
Public Property Gets or sets a one or two word label that appears above the tooltip. (Inherited from ArcGIS.Desktop.Framework.Contracts.PlugIn)
Top
Protected Properties
 NameDescription
Protected PropertyGets the active MapView.  
Protected Property Gets or sets the mouse up behavior for Rectangle/Circle/Ellipse/Freehand sketches.  
Protected Property Gets or sets the DAML ID of the context menu for the tool.  
Protected Property Gets or sets the DAML ID of the toolbar to display for the tool.  
Protected Property Gets or sets the DAML ID of the embeddable control to show in the dock pane when the tool is active.  
Protected Property Gets the active editing template being used by the tool.  
Protected PropertyGets the EmbeddableControl created for the tool. This is the control set by the ControlID property.  
Protected Property Gets or sets whether the tool supports firing sketch events when the map sketch changes. Default value is false.  
Protected PropertyGets or sets whether the geometry constructed from a finished sketch should be simplified prior to being returned to OnSketchCompleteAsync. The default value is true.  
Protected Internal Property Gets the DAML identifier. (Inherited from ArcGIS.Desktop.Framework.Contracts.PlugIn)
Protected Property Gets or sets whether the MapTool's default behavior of a left click should be to create a sketch.  
Protected Property Gets or sets whether the sketch shows a symbol.  
Protected Property Optional property to allow tool's embeddable control to remain open after the tool is deactivated.  
Protected Property Gets or sets whether the embeddable control on the map view can be resized.  
Protected Property Gets or sets the DAML ID of the embeddable control to show on the map view when the tool is active.  
Protected Property Gets or sets the position of the embeddable control on the map view as a ratio.  
Protected PropertyGets the EmbeddableControl created for the tool to be shown on the map view. This is control set by the OverlayControlID property.  
Protected Property Gets or sets the DAML ID of the context menu shown when modifying a segment.  
Protected Property Gets a read only ShortCut collection for the current tool. (Inherited from ArcGIS.Desktop.Framework.Contracts.Tool)
Protected Property Gets or sets whether the uncommitted sketch dialog is shown. Default is false.  
Protected Property Gets and sets the SketchMode for the MapTool.  
Protected Property Gets or sets the number of sides for a regular polygon.  
Protected Property Gets or sets if the sketch geometry should be created using map or screen coordinates.  
Protected Property Gets or sets the sketch symbology when the sketch is in selection mode.  
Protected Property Gets or sets the symbol to use for the sketch. This is only supported when creating a sketch in map coordinates.  
Protected Property Gets or sets the type or shape of the geometry to be created by the sketch.  
Protected PropertyGets the SnapResult for each vertex in the current sketch.  
Protected Property Gets or sets whether the sketch is for creating a feature and should use the CurrentTemplate.  
Protected Property Gets or sets if the sketch can enter sketch selection mode by holding the SHIFT key. Sketch selection mode allows you to select additional features while sketching. The sketch state is saved in selection mode. Releasing the SHIFT key returns you to sketch mode and allows you to resume sketching. The default value is False.  
Protected Property Gets or sets whether to use snapping to precisely sketch on the active map view. The default value is false.  
Top
Protected Methods
 NameDescription
Protected MethodSets the tool into or out of selection mode. Only supported when SketchType is set to Point, Line, Polygon, or Multipoint.  
Protected MethodOverloaded.   
Protected MethodOverloaded.   
Protected Method Clears the current sketch in the active map view.  
Protected Method Creates a new EditOperation to create a feature using the given template and geometry.  
Protected Method Finishes the current sketch in the active map view.  
Protected Method Gets the current geometry of the sketch without finishing it.  
Protected MethodOccurs when the OnToolDoubleClick event is handled.  
Protected MethodOccurs when the OnToolKeyDown event is handled.  
Protected MethodOccurs when the OnToolKeyUp event is handled.  
Protected MethodOccurs when the OnToolMouseDown event is handled.  
Protected MethodOccurs when the OnToolMouseUp event is handled.  
Protected Method Called to inform the Tool a Pane referencing it as the active tool is activating or deactivating.  
Protected MethodOverloaded.  (Inherited from ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase)
Protected Internal Method Called on the active tool when a pane change occurrs to see if the tool wants to remain active. (Inherited from ArcGIS.Desktop.Framework.Contracts.Tool)
Protected Method Occurs when the current template is modified.  
Protected Internal Method Occurs when a pointer is pressed on a Pane and the tool is active. (Inherited from ArcGIS.Desktop.Framework.Contracts.Tool)
Protected Internal Method Occurs when a pointer is released over a Pane. (Inherited from ArcGIS.Desktop.Framework.Contracts.Tool)
Protected Method Occurs when the selection changes in the map.  
Protected Method Occurs when a sketch is cancelled.  
Protected Method Occurs when a sketch is finished.  
Protected Method Occurs when a sketch is modified.  
Protected Method Occurs when the tool is activated.  
Protected Method Occurs when the tool is deactivated.  
Protected Method Occurs when a mouse button is clicked on the view two or more times.  
Protected Method Occurs when a key is pressed and the view has focus.  
Protected Method Occurs when a key is released and the view has focus.  
Protected Method Occurs when a mouse button is pressed on the view.  
Protected Method Occurs when the mouse pointer moves over the view.  
Protected Method Occurs when a mouse button is released on the view.  
Protected Internal Method Occurs when a touch event occurs over a Pane. (Inherited from ArcGIS.Desktop.Framework.Contracts.Tool)
Protected Internal Method Called periodically by the framework once the tool has been created. (Inherited from ArcGIS.Desktop.Framework.Contracts.PlugIn)
Protected Method Sets the current geometry of the sketch without finishing it.  
Protected MethodOverloaded.  (Inherited from ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase)
Protected MethodOverloaded.   
Protected MethodOverridden.  Occurs when a cursor is set on this tool. Forward the cursor to the inner tool.  
Protected Method Updates an overlay graphic for a feature on the map view.  
Top
Public Events
 NameDescription
Public Event Occurs when a property value changes. (Inherited from ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase)
Top
See Also

Reference

MapTool Class
ArcGIS.Desktop.Mapping Namespace