Nevron.UI.WinForm.Controls Namespace / NUIRenderer Class / MeasureText Method / MeasureText(Graphics,String,Font,StringFormat) Method


MeasureText(Graphics,String,Font,StringFormat) Method
Syntax
'Declaration
 
Public Overloads Shared Function MeasureText( _
   ByVal g As System.Drawing.Graphics, _
   ByVal text As System.String, _
   ByVal f As System.Drawing.Font, _
   ByVal format As System.Drawing.StringFormat _
) As System.Drawing.Size
 
'Usage
 
Dim g As System.Drawing.Graphics
Dim text As System.String
Dim f As System.Drawing.Font
Dim format As System.Drawing.StringFormat
Dim value As System.Drawing.Size
 
value = NUIRenderer.MeasureText(g, text, f, format)

Parameters

g
text
f
format
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also