Functions
Drawing layers
Map modules

Functions

void AxMap.ClearDrawing (int DrawHandle)
 Clears all the drawings on the drawing layer specified.
void AxMap.ClearDrawingLabels (int DrawHandle)
 Clears labels on the specified drawing layer.
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.
int AxMap.DrawLabel (string Text, double x, double y, double Rotation)
 Draws a label on the current drawing layer.
int AxMap.DrawLabelEx (int DrawHandle, string Text, double x, double y, double Rotation)
 Draws a label 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.
Labels AxMap.get_DrawingLabels (int DrawingLayerIndex)
 Gets labels associated with the drawing layer.
bool AxMap.get_DrawingLabelsVisible (int DrawHandle)
 Gets a boolean value which indicates whether labels of the drawing layer are visible.
int AxMap.NewDrawing (MapWinGIS.tkDrawReferenceList Projection)
 Creates a new drawing layer on the map returning its handle.
void AxMap.set_DrawingKey (int DrawHandle, string newValue)
 Sets the drawing key may be used by the programmer to store any string for a drawing layer with specified handle.
void AxMap.set_DrawingLabels (int DrawingLayerIndex, Labels newValue)
 Replaces the labels associated with the drawing layer.
void AxMap.set_DrawingLabelsVisible (int DrawHandle, bool newValue)
 Sets a boolean value which indicates whether labels of the drawing layer are visible.
void AxMap.SetDrawingLayerVisible (int LayerHandle, bool Visible)
 Sets the boolean value which indicates whether the labels of the drawing layer are visible.

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_7.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.
void AxMap.ClearDrawingLabels ( int  DrawHandle)

Clears labels on the specified drawing layer.

Parameters:
DrawHandleThe handle of the drawing layer returned by AxMap.NewDrawing method.

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.
int AxMap.DrawLabel ( string  Text,
double  x,
double  y,
double  Rotation 
)

Draws a label on the current drawing layer.

Parameters:
TextText of the label.
xX coordinate, in either screen or map units depending on the parameters of AxMap.NewDrawing used to create the layer.
yY coordinate, in either screen or map units depending on the parameters of AxMap.NewDrawing used to create the layer.
RotationRotation angle in degrees.
Returns:
Layer handle if the label was added successfully or -1 on failure.
New API 4.9.3:
Added in version 4.9.3
int AxMap.DrawLabelEx ( int  DrawHandle,
string  Text,
double  x,
double  y,
double  Rotation 
)

Draws a label on the specified drawing layer.

Parameters:
DrawHandleHandle of the layer.
TextText of the label.
xX coordinate, in either screen or map units depending on the parameters of AxMap.NewDrawing used to create the layer.
yY coordinate, in either screen or map units depending on the parameters of AxMap.NewDrawing used to create the layer.
RotationRotation angle in degrees.
Returns:
Layer handle if the label was added successfully or -1 on failure.
New API 4.9.3:
Added in version 4.9.3
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-coordinates 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-coordinates 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.
radiusRadius 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.
OutlineWidthThe 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-coordinates 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-coordinates 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.
OutlineWidthThe 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.
Labels AxMap.get_DrawingLabels ( int  DrawingLayerIndex)

Gets labels associated with the drawing layer.

Parameters:
DrawingLayerIndexThe handle of the drawing layer returned by AxMap.NewDrawing method.
Returns:
The reference to the Labels class or NULL reference on the invalid handle.
Examples:
SplitByAttribute.cs, and ToolTip.cs.
bool AxMap.get_DrawingLabelsVisible ( int  DrawHandle)

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

This property corresponds to the Labels.Visible property.

Parameters:
DrawHandleThe handle of the drawing layer returned by AxMap.NewDrawing method.
Returns:
True in case labels are visible and false otherwise.

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  newValue 
)

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.
newValueThe string associated with the layer.
void AxMap.set_DrawingLabels ( int  DrawingLayerIndex,
Labels  newValue 
)

Replaces the labels associated with the drawing layer.

Parameters:
DrawingLayerIndexThe handle of the drawing layer returned by AxMap.NewDrawing method.
newValueThe new instance of the Labels class to associate with the layer.
void AxMap.set_DrawingLabelsVisible ( int  DrawHandle,
bool  newValue 
)

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

This property corresponds to the Labels.Visible property.

Parameters:
DrawHandleThe handle of the drawing layer returned by AxMap.NewDrawing method.
newValueTrue in case labels are visible and false otherwise.
void AxMap.SetDrawingLayerVisible ( int  LayerHandle,
bool  Visible 
)

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

Parameters:
LayerHandleThe handle of the drawing layer.
VisibleA boolean value which indicates whether the labels are visible.
 All Classes Files Functions Enumerations Properties Events