ESRI.ArcGIS.Mobile
DrawText Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile Namespace > MapSurface Class : DrawText Method

text
String to draw.
font
Font object that defines the text format of the string.
textColor
The color of the drawn text.
edgeColor
The color of the text outline, use Color.Empty if not needed.
coordinate
Upper-left corner of the drawn text.
align
Text position relative to the specified coordinate.
Draws the text string at the specified location using the Brush and Font objects.

Syntax

Visual Basic (Declaration) 
Public Sub DrawText( _
   ByVal text As String, _
   ByVal font As Font, _
   ByVal textColor As Color, _
   ByVal edgeColor As Color, _
   ByVal coordinate As Coordinate, _
   ByVal align As TextAlignment _
) 
C# 
public void DrawText( 
   string text,
   Font font,
   Color textColor,
   Color edgeColor,
   Coordinate coordinate,
   TextAlignment align
)

Parameters

text
String to draw.
font
Font object that defines the text format of the string.
textColor
The color of the drawn text.
edgeColor
The color of the text outline, use Color.Empty if not needed.
coordinate
Upper-left corner of the drawn text.
align
Text position relative to the specified coordinate.

Exceptions

ExceptionDescription
ArgumentNullExceptionNull coordinate for the text to be drawn.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.