ESRI.ArcGIS.Mobile
DrawText(String,Font,SolidBrush,Coordinate,TextAlignment) Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile Namespace > Display Class > DrawText Method : DrawText(String,Font,SolidBrush,Coordinate,TextAlignment) Method

text
String to draw.
font
Font object that defines the text format of the string.
brush
Brush object that determines the color of the drawn text.
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) 
<ObsoleteAttribute()>
Public Overloads Sub DrawText( _
   ByVal text As String, _
   ByVal font As Font, _
   ByVal brush As SolidBrush, _
   ByVal coordinate As Coordinate, _
   ByVal align As TextAlignment _
) 
C# 
[ObsoleteAttribute()]
public void DrawText( 
   string text,
   Font font,
   SolidBrush brush,
   Coordinate coordinate,
   TextAlignment align
)

Parameters

text
String to draw.
font
Font object that defines the text format of the string.
brush
Brush object that determines the color of the drawn text.
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

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