Nevron .NET Vision
Nevron.GraphicsCore Namespace / NGraphics Class / MeasureText Method / MeasureText(String,NTextStyle) Method


In This Topic
    MeasureText(String,NTextStyle) Method
    In This Topic
    Measures the specified text when drawn with the specified text style.
    Syntax
    'Declaration
     
    
    Public Overloads Function MeasureText( _
       ByVal text As System.String, _
       ByVal textStyle As NTextStyle _
    ) As NSizeF
    'Usage
     
    
    Dim instance As NGraphics
    Dim text As System.String
    Dim textStyle As NTextStyle
    Dim value As NSizeF
     
    value = instance.MeasureText(text, textStyle)
    public NSizeF MeasureText( 
       System.string text,
       NTextStyle textStyle
    )

    Parameters

    text
    textStyle
    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