Nevron.UI Namespace / NTextRenderer Class / MeasureText Method / MeasureText(NPaintContext,NThemeStyle,NRectangle,String,TextOrientation) Method


MeasureText(NPaintContext,NThemeStyle,NRectangle,String,TextOrientation) Method
Syntax
'Declaration
 
Public Overloads Shared Function MeasureText( _
   ByVal context As NPaintContext, _
   ByVal style As NThemeStyle, _
   ByVal bounds As NRectangle, _
   ByVal text As System.String, _
   ByVal textOrientation As TextOrientation _
) As NSize
 
'Usage
 
Dim context As NPaintContext
Dim style As NThemeStyle
Dim bounds As NRectangle
Dim text As System.String
Dim textOrientation As TextOrientation
Dim value As NSize
 
value = NTextRenderer.MeasureText(context, style, bounds, text, textOrientation)

Parameters

context
style
bounds
text
textOrientation
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