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 rectangle As Rectangle,  _ 
   ByVal symbol As Symbol _ 
)
C#
public void DrawRectangle(
   Rectangle rectangle,
   Symbol symbol
)
C++
public:
 void DrawRectangle(
   Rectangle rectangle,
   Symbol symbol
) sealed 
J#
public void DrawRectangle(
   Rectangle rectangle,
   Symbol symbol
)
JScript
public  function DrawRectangle(
   rectangle : Rectangle,
   symbol : Symbol
)

Parameters

rectangle
Represents the coordinates 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