Nevron .NET Vision
Nevron.Diagram Namespace / NDiagramNode Class / MeasureStringInDevice Method
string to measure
text style of the string
result size in device measurement units

In This Topic
    MeasureStringInDevice Method
    In This Topic
    Measures the specified string in device units
    Protected Overridable Function MeasureStringInDevice( _
       ByVal str As System.String, _
       ByVal style As NTextStyle, _
       ByRef size As NSizeF _
    ) As System.Boolean
    Dim instance As NDiagramNode
    Dim str As System.String
    Dim style As NTextStyle
    Dim size As NSizeF
    Dim value As System.Boolean
    value = instance.MeasureStringInDevice(str, style, size)
    protected virtual System.bool MeasureStringInDevice( 
       System.string str,
       NTextStyle style,
       out NSizeF size


    string to measure
    text style of the string
    result size in device measurement units

    Return Value

    true if the measurement succeeded, otherwise false

    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