Draws a rectangle on the Map. The rectangle is outlined and is filled by using the symbol specified by the symbol parameter.


Namespace: AspMap.Web
Assembly: AspMapNET (in AspMapNET.dll)

Syntax

Visual Basic (Declaration)
Public Sub DrawRectangle( _ 
   ByVal left As Double,  _ 
   ByVal top As Double,  _ 
   ByVal right As Double,  _ 
   ByVal bottom As Double,  _ 
   ByVal symbol As Symbol _ 
)
C#
public void DrawRectangle(
   double left,
   double top,
   double right,
   double bottom,
   Symbol symbol
)
C++
public:
 void DrawRectangle(
   double left,
   double top,
   double right,
   double bottom,
   Symbol symbol
) sealed 
J#
public void DrawRectangle(
   double left,
   double top,
   double right,
   double bottom,
   Symbol symbol
)
JScript
public  function DrawRectangle(
   left : double,
   top : double,
   right : double,
   bottom : double,
   symbol : Symbol
)

Parameters

left
A double expression that represents the X coordinate of the upper-left corner of the rectangle.
top
A double expression that represents the Y coordinate of the upper-left corner of the rectangle.
right
A double expression that represents the X coordinate of the lower-right corner of the rectangle.
bottom
A double expression that represents the Y coordinate of the lower-right corner of the rectangle.
symbol
An object expression that evaluates to a Symbol object.

Remarks

The coordinates can be either in the current map units or pixels depending on the current value of the DrawingUnits property.

See Also