A Map control displays a collection of layers.


The following tables list the members exposed by Map.

Public Constructors

  Name Description
Public method Map Initializes a new instance of the Map class.
Top

Public Properties

  Name Description
Public property AnimationLayer Returns the AnimationLayer object associated with the Map.
Public property BorderStyle Specifies the style of the border.
Public property Callouts Returns the Callouts collection of the Map.
Public property CoordinateSystem Gets or sets the coordinate system for the Map.
Public property DrawingUnits Returns or sets the drawing units constant value that indicates the coordinate system for the DrawEllipse, DrawRectangle, DrawLine, DrawString, DrawPoint, DrawShape, DrawLabel methods.
Public property EnableScrollWheelZoom Enables or disables zooming using a mouse's scroll wheel.
Public property Extent Gets or sets the current spatial extent of the Map.
Public property FontQuality Gets or sets the font rendering quality for this Map object.
Public property FullExtent Gets or sets the full spatial extent of the Map.
Public property IsEdit Returns true if a shape has been set for editing or has been drawn.
Public property Layer Returns a specific layer of the Map, by position (default property).
Public property LayerCount Returns the number of layers in the Map.
Public property MapScale Sets or gets the scale of the map as a representative fraction.
Public property MapShapes Returns the MapShapes collection of the Map.
Public property MapTool Gets or sets the current map tool.
Public property MapUnit Sets or returns the units for the map.
Public property NewShapeType Specifies the shape type tah will be drawn by using the DrawShape tool.
Public property PixelPerInch This value represents the number of pixels per inch which is used to calculate the map scale.
Public property RefreshCount Gets or sets a value that determines the rate at which the features of the Map draw.
Public property RotationAngle Gets or sets a value that sets the angle at which features are drawn on a Map.
Public property ScaleBar Returns the ScaleBar object associated with the Map.
Public property SmoothingMode Gets or sets the line rendering quality for this Map object.
Public property ToolShape Controls the appearance of the map tool shape.
Top

Public Methods

  Name Description
Public method AddLayer Overloaded. Adds a layer to the Map control.
Public method CalculateScale Calculates a scale of a map.
Public method CancelEdit Cancels editing performed by using the DrawShape or EditShape tools and clears the map.
Public method CenterAt Moves the center of the Map to the specified location.
Public method ConvertArea Converts an area from one unit to another.
Public method ConvertDistance Converts a distance from one unit to another.
Public method DrawEllipse The DrawEllipse method draws an ellipse on the Map. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined and is filled by using the symbol specified by the symbol parameter.
Public method DrawLabel Draws a text label on the Map.
Public method DrawLine Overloaded. Draws a line on the Map.
Public method DrawPoint Overloaded. Draws a point on the Map.
Public method DrawRectangle Overloaded. Draws a rectangle on the Map. The rectangle is outlined and is filled by using the symbol specified by the symbol parameter.
Public method DrawShape Draws a shape on the Map. The shape is outlined and is filled by using the symbol specified by the symbol parameter.
Public method DrawString Draws a string at the specified point on the Map.
Public method EditShape Starts editing of a shape. The coordinate system of the shape must be the same as the coordinate system of the Map.
Public method FindLayer Finds a layer by its name.
Public method FromMapDistance Converts a linear measurement in map units to a distance in pixels.
Public method FromMapPoint Converts a point in map coordinates to coordinates in pixels.
Public method GetBitmap Returns the map image.
Public method GetEditedShape Returns the edited shape or null.
Public method GetLayerIndex Returns the ordinal number of a layer by its name.
Public method Identify Creates a Recordset of all features that intersect the specified point.
Public method IsLayerVisible This method returns a value indicating whether a Layer object is visible.
Public method MeasureDistance Overloaded. Returns a distance between two points in map units.
Public method MoveLayer Moves a layer from its current index position to a new index position.
Public method Pan Moves the map in the direction specified by the direction parameter.
Public method Refresh Overridden. Forces a complete repaint of the Map.
Public method RemoveAllLayers Removes all layers of the Map.
Public method RemoveLayer Overloaded. Removes a layer from the Map.
Public method RemoveSelectedVertex Removes the selected vertex (if the EditShape tool is active).
Public method StartAnimation Start refreshing of the AnimationLayer associated with the Map.
Public method StopAnimation Stops refreshing of the AnimationLayer associated with the Map.
Public method ToMapDistance Converts a linear measurement in pixels to a distance in map units.
Public method ToMapPoint Converts a point in pixels to map units.
Public method ZoomFull Sets the Extent of the Map to its FullExtent.
Public method ZoomIn Call this method to zoom in on the map to a specified point. Point coordinates are measured in map units.
Public method ZoomOut Call this method to zoom out on the map to a specified point. Point coordinates are measured in map units.
Public method ZoomScale Call this method to zoom in on the map to a specified point. Point coordinates are measured in map units.
Top

Public Events

  Name Description
Public event AfterMapDraw Occurs when the Map ends to draw itself.
Public event BeforeMapDraw Occurs when the Map starts to draw itself.
Public event CircleToolFinished Occurs when the user has finished drawing a circle on the Map.
Public event CircleToolMove Occurs when the user draws a circle on the Map.
Public event DistanceToolFinished Occurs when the user has finished measuring distances.
Public event DistanceToolMove Occurs when the user measures a distance on the Map.
Public event InfoTool Occurs when the user clicks the Map to request information about a map feature.
Public event LineToolFinished Occurs when the user has finished drawing a line on the Map.
Public event LineToolMove Occurs when the user draws a line on the Map.
Public event MapScaleChanged Occurs when the current scale of the Map has been changed as a result of a zoom/pan operation or extent changing.
Public event PanToolClick Occurs when the user clicks on the map (when the Pan tool is selected).
Public event PointTool Occurs when the Map is clicked.
Public event PolygonToolFinished Occurs when the user has finished drawing a polygon on the Map.
Public event PolygonToolMove Occurs when the user draws a polygon on the Map.
Public event PolylineToolFinished Occurs when the user has finished drawing a polyline on the Map.
Public event PolylineToolMove Occurs when the user draws a polyline on the Map.
Public event RectangleToolFinished Occurs when the user has finished drawing a rectangle on the Map.
Public event RectangleToolMove Occurs when the user draws a rectangle on the Map.
Public event RefreshAnimationLayer Occurs when the AnimationLayer needs to be refreshed.
Top

See Also