Nevron .NET Vision
Nevron.GraphicsCore Namespace / N2DDevice Class / MeasureString Method / MeasureString(String,Int32,Int32) Method


In This Topic
    MeasureString(String,Int32,Int32) Method
    In This Topic
    Measures the portion of the string specified by the start and end indices when drawn with the active font style.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function MeasureString( _
       ByVal s As System.String, _
       ByVal startIndex As System.Integer, _
       ByVal length As System.Integer _
    ) As NSizeF
    'Usage
     
    
    Dim instance As N2DDevice
    Dim s As System.String
    Dim startIndex As System.Integer
    Dim length As System.Integer
    Dim value As NSizeF
     
    value = instance.MeasureString(s, startIndex, length)
    public virtual NSizeF MeasureString( 
       System.string s,
       System.int startIndex,
       System.int length
    )

    Parameters

    s
    startIndex
    length
    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