Functions
Drawing layers
Map modules

Functions

void AxMap.ClearDrawing (int DrawHandle)
 Clears all the drawings on the drawing layer specified.
void AxMap.ClearDrawings ()
 Clears all drawings on all drawing layers. This method is slower than using ClearDrawing on a specific layer.
void AxMap.DrawCircle (double x, double y, double pixelRadius, uint Color, bool fill)
 Draws a circle on the last drawing layer created by NewDrawing.
void AxMap.DrawCircleEx (int LayerHandle, double x, double y, double pixelRadius, uint Color, bool fill)
 Draws a circle on the specified drawing layer.
void AxMap.DrawLine (double x1, double y1, double x2, double y2, int pixelWidth, uint Color)
 Draws a line on the last drawing layer created using NewDrawing.
void AxMap.DrawLineEx (int LayerHandle, double x1, double y1, double x2, double y2, int pixelWidth, uint Color)
 Draws a line on the specified drawing layer.
void AxMap.DrawPoint (double x, double y, int pixelSize, uint Color)
 Draws a point on the last drawing layer created by NewDrawing.
void AxMap.DrawPointEx (int LayerHandle, double x, double y, int pixelSize, uint Color)
 Draws a point on the specified drawing layer.
void AxMap.DrawPolygon (ref object xPoints, ref object yPoints, int numPoints, uint Color, bool fill)
 Draws a polygon on the last drawing layer created using NewDrawing.
void AxMap.DrawPolygonEx (int LayerHandle, ref object xPoints, ref object yPoints, int numPoints, uint Color, bool fill)
 Draws a polygon on the specified drawing layer.
void AxMap.DrawWideCircle (double x, double y, double pixelRadius, uint Color, bool fill, short Width)
 Draws a circle with custom outline width on the last drawing layer created by NewDrawing.
void AxMap.DrawWideCircleEx (int LayerHandle, double x, double y, double radius, uint Color, bool fill, short OutlineWidth)
 Draws a circle with custom outline width on the specified drawing layer.
void AxMap.DrawWidePolygon (ref object xPoints, ref object yPoints, int numPoints, uint Color, bool fill, short Width)
 Draws a polygon with custom width of outline on the last drawing layer created using NewDrawing.
void AxMap.DrawWidePolygonEx (int LayerHandle, ref object xPoints, ref object yPoints, int numPoints, uint Color, bool fill, short OutlineWidth)
 Draws a polygon with custom width of outline on the last drawing layer created using NewDrawing.
string AxMap.get_DrawingKey (int DrawHandle)
 Gets the drawing key which may be used by the programmer to store any string for a drawing layer with specified handle.
int AxMap.NewDrawing (MapWinGIS.tkDrawReferenceList Projection)
 Creates a new drawing layer on the map returning its handle.
void AxMap.set_DrawingKey (int DrawHandle, string __p2)
 Sets the drawing key may be used by the programmer to store any string for a drawing layer with specified handle.
void AxMap.SetDrawingLayerVisible (int LayerHandle, bool Visiable)
 Sets the boolean value which indicates whether the labels of the drawing layer are visible.
void AxMap.SetDrawingStandardViewWidth (int DrawHandle, double Width)
 Deprecated. Affects the scaling of the labels of the specified drawing layer.

Detailed Description

Here is a list of methods and properties to interact with the drawing layers of the map. This module is a part of the documentation of AxMap class.

dot_inline_dotgraph_10.png

Graph description


Function Documentation

void AxMap.ClearDrawing ( int  DrawHandle)

Clears all the drawings on the drawing layer specified.

Parameters:
DrawHandleDrawing handle of the drawing layer for which all drawings are to be cleared.

Clears all drawings on all drawing layers. This method is slower than using ClearDrawing on a specific layer.

Examples:
Tracking.cs.
void AxMap.DrawCircle ( double  x,
double  y,
double  pixelRadius,
uint  Color,
bool  fill 
)

Draws a circle on the last drawing layer created by NewDrawing.

Parameters:
xCenter x coordinate for the circle to be drawn.
yCenter y coordinate for the circle to be drawn.
pixelRadiusRadius in pixels of the circle to be drawn.
ColorColor of the circle to be drawn. This is a UInt32 representation of an RGB color.
fillBoolean value which determines whether the circle will be drawn with a fill or not.
void AxMap.DrawCircleEx ( int  LayerHandle,
double  x,
double  y,
double  pixelRadius,
uint  Color,
bool  fill 
)

Draws a circle on the specified drawing layer.

Parameters:
LayerHandleThe handle of the drawing layer created with AxMap.NewDrawing call.
xCenter x coordinate for the circle to be drawn.
yCenter y coordinate for the circle to be drawn.
pixelRadiusRadius in pixels of the circle to be drawn.
ColorColor of the circle to be drawn. This is a UInt32 representation of an RGB color.
fillBoolean value which determines whether the circle will be drawn with a fill or not.
Examples:
Tracking.cs.
void AxMap.DrawLine ( double  x1,
double  y1,
double  x2,
double  y2,
int  pixelWidth,
uint  Color 
)

Draws a line on the last drawing layer created using NewDrawing.

Parameters:
x1X coordinate of the first point used to draw the line
y1Y coordinate of the first point used to draw the line.
x2X coordinate of the second point used to draw the line.
y2Y coordinate of the second point used to draw the line.
pixelWidthWidth of the line in pixels.
ColorColor to draw the line with. This is a UInt32 representation of an RGB value.
void AxMap.DrawLineEx ( int  LayerHandle,
double  x1,
double  y1,
double  x2,
double  y2,
int  pixelWidth,
uint  Color 
)

Draws a line on the specified drawing layer.

Parameters:
LayerHandleThe handle of the drawing layer created with AxMap.NewDrawing call.
x1X coordinate of the first point used to draw the line
y1Y coordinate of the first point used to draw the line.
x2X coordinate of the second point used to draw the line.
y2Y coordinate of the second point used to draw the line.
pixelWidthWidth of the line in pixels.
ColorColor to draw the line with. This is a UInt32 representation of an RGB value.
void AxMap.DrawPoint ( double  x,
double  y,
int  pixelSize,
uint  Color 
)

Draws a point on the last drawing layer created by NewDrawing.

Parameters:
xThe x coordinate of the point to draw
yThe y coordinate of the point to draw.
pixelSizeThe size in pixels of the point to be drawn.
ColorThe color of the point to be drawn. This is a UInt32 representation of an RGB color.
void AxMap.DrawPointEx ( int  LayerHandle,
double  x,
double  y,
int  pixelSize,
uint  Color 
)

Draws a point on the specified drawing layer.

Parameters:
LayerHandleThe handle of the drawing layer created with AxMap.NewDrawing call.
xThe x coordinate of the point to draw
yThe y coordinate of the point to draw.
pixelSizeThe size in pixels of the point to be drawn.
ColorThe color of the point to be drawn. This is a UInt32 representation of an RGB color.
Examples:
ShapefileToDrawingLayer.cs, and SplitByAttribute.cs.
void AxMap.DrawPolygon ( ref object  xPoints,
ref object  yPoints,
int  numPoints,
uint  Color,
bool  fill 
)

Draws a polygon on the last drawing layer created using NewDrawing.

Parameters:
xPointsAn array containing x-coordinates for each point in the polygon.
yPointsAn array containing y-coordiniates for each point in the polygon.
numPointsThe number of points in the polygon.
ColorThe color to use when drawing the polygon. This is a UInt32 representation of an RGB color.
fillA boolean value representing whether the polygon is drawn with a fill or not.
void AxMap.DrawPolygonEx ( int  LayerHandle,
ref object  xPoints,
ref object  yPoints,
int  numPoints,
uint  Color,
bool  fill 
)

Draws a polygon on the specified drawing layer.

Parameters:
LayerHandleThe handle of the drawing layer created with AxMap.NewDrawing call.
xPointsAn array containing x-coordinates for each point in the polygon.
yPointsAn array containing y-coordiniates for each point in the polygon.
numPointsThe number of points in the polygon.
ColorThe color to use when drawing the polygon. This is a UInt32 representation of an RGB color.
fillA boolean value representing whether the polygon is drawn with a fill or not.
Examples:
ShapefileToDrawingLayer.cs, and SplitByAttribute.cs.
void AxMap.DrawWideCircle ( double  x,
double  y,
double  pixelRadius,
uint  Color,
bool  fill,
short  Width 
)

Draws a circle with custom outline width on the last drawing layer created by NewDrawing.

Parameters:
xCenter x coordinate for the circle to be drawn.
yCenter y coordinate for the circle to be drawn.
pixelRadiusRadius in pixels of the circle to be drawn.
ColorColor of the circle to be drawn. This is a UInt32 representation of an RGB color.
fillBoolean value which determines whether the circle will be drawn with a fill or not.
WidthThe width of the outline.
void AxMap.DrawWideCircleEx ( int  LayerHandle,
double  x,
double  y,
double  radius,
uint  Color,
bool  fill,
short  OutlineWidth 
)

Draws a circle with custom outline width on the specified drawing layer.

Parameters:
LayerHandleThe handle of the drawing layer created with AxMap.NewDrawing call.
xCenter x coordinate for the circle to be drawn.
yCenter y coordinate for the circle to be drawn.
pixelRadiusRadius in pixels of the circle to be drawn.
ColorColor of the circle to be drawn. This is a UInt32 representation of an RGB color.
fillBoolean value which determines whether the circle will be drawn with a fill or not.
WidthThe width of the outline.
void AxMap.DrawWidePolygon ( ref object  xPoints,
ref object  yPoints,
int  numPoints,
uint  Color,
bool  fill,
short  Width 
)

Draws a polygon with custom width of outline on the last drawing layer created using NewDrawing.

Parameters:
xPointsAn array containing x-coordinates for each point in the polygon.
yPointsAn array containing y-coordiniates for each point in the polygon.
numPointsThe number of points in the polygon.
ColorThe color to use when drawing the polygon. This is a UInt32 representation of an RGB color.
fillA boolean value representing whether the polygon is drawn with a fill or not.
WidthThe width of the outline.
void AxMap.DrawWidePolygonEx ( int  LayerHandle,
ref object  xPoints,
ref object  yPoints,
int  numPoints,
uint  Color,
bool  fill,
short  OutlineWidth 
)

Draws a polygon with custom width of outline on the last drawing layer created using NewDrawing.

Parameters:
LayerHandleThe handle of the drawing layer created with AxMap.NewDrawing call.
xPointsAn array containing x-coordinates for each point in the polygon.
yPointsAn array containing y-coordiniates for each point in the polygon.
numPointsThe number of points in the polygon.
ColorThe color to use when drawing the polygon. This is a UInt32 representation of an RGB color.
fillA boolean value representing whether the polygon is drawn with a fill or not.
WidthThe width of the outline.
string AxMap.get_DrawingKey ( int  DrawHandle)

Gets the drawing key which may be used by the programmer to store any string for a drawing layer with specified handle.

Parameters:
DrawHandleThe handle of the drawing layer.
Returns:
The string associated with the layer.

Creates a new drawing layer on the map returning its handle.

Parameters:
ProjectionSets the coordinate system to use for the new drawing layer to be created. (ScreenReferenced uses pixels in screen coordinates. SpatiallyReferenced uses projected map units.)
Returns:
The handle for the new drawing layer in the map.
Examples:
ShapefileToDrawingLayer.cs, SplitByAttribute.cs, ToolTip.cs, and Tracking.cs.
void AxMap.set_DrawingKey ( int  DrawHandle,
string  __p2 
)

Sets the drawing key may be used by the programmer to store any string for a drawing layer with specified handle.

Parameters:
DrawHandleThe handle of the drawing layer.
__p2The string associated with the layer.
void AxMap.SetDrawingLayerVisible ( int  LayerHandle,
bool  Visiable 
)

Sets the boolean value which indicates whether the labels of the drawing layer are visible.

Parameters:
LayerHandleThe handle of the drawing layer.
VisiableA boolean value which indicates whether the labels are visible.
void AxMap.SetDrawingStandardViewWidth ( int  DrawHandle,
double  Width 
)

Deprecated. Affects the scaling of the labels of the specified drawing layer.

Parameters:
DrawHandleThe handle of the drawing layer.
WidthThe width in pixels.
Deprecated:
v.4.8. Use Labels.BasicScale and Labels.ScaleLabels instead.
 All Classes Files Functions Enumerations Properties