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

text
String to measure.
font
Font object that defines the text format of the string.
Measures the size of specified string when drawn with the specified Font object.

Syntax

Visual Basic (Declaration) 
Public Function MeasureText( _
   ByVal text As String, _
   ByVal font As Font _
) As TextSize
C# 
public TextSize MeasureText( 
   string text,
   Font font
)

Parameters

text
String to measure.
font
Font object that defines the text format of the string.

Return Value

System.Drawing.Size object

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.