Draws a string at the specified point on the Map.


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

Syntax

Visual Basic (Declaration)
Public Sub DrawString( _ 
   ByVal x As Double,  _ 
   ByVal y As Double,  _ 
   ByVal strText As String,  _ 
   ByVal font As Font _ 
)
C#
public void DrawString(
   double x,
   double y,
   string strText,
   Font font
)
C++
public:
 void DrawString(
   double x,
   double y,
   String strText,
   Font font
) sealed 
J#
public void DrawString(
   double x,
   double y,
   string strText,
   Font font
)
JScript
public  function DrawString(
   x : double,
   y : double,
   strText : String,
   font : Font
)

Parameters

x
The x-coordinate at which to draw the string.
y
The y-coordinate at which to draw the string.
strText
The string to draw.
font
An object expression that evaluates to a Font 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