Nevron.UI Namespace / NTextRenderer Class / MeasureText Method / MeasureText(Graphics,NRectangle,String,Font,Int32,TextOrientation) Method


MeasureText(Graphics,NRectangle,String,Font,Int32,TextOrientation) Method
Syntax
'Declaration
 
Public Overloads Shared Function MeasureText( _
   ByVal g As System.Drawing.Graphics, _
   ByVal r As NRectangle, _
   ByVal text As System.String, _
   ByVal f As System.Drawing.Font, _
   ByVal flags As System.Integer, _
   ByVal to As TextOrientation _
) As NSize
 
'Usage
 
Dim g As System.Drawing.Graphics
Dim r As NRectangle
Dim text As System.String
Dim f As System.Drawing.Font
Dim flags As System.Integer
Dim to As TextOrientation
Dim value As NSize
 
value = NTextRenderer.MeasureText(g, r, text, f, flags, to)

Parameters

g
r
text
f
flags
to
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