Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType.BarCode Namespace / BarCodeHelper Class / ConvertToNewUnit Method
Value in old units
New units
Resolution in dpi (dots per inch)


In This Topic
    ConvertToNewUnit Method
    In This Topic
    Converts the parameter in one unit of measure to an equivalent value in another unit of measure.
    Syntax
    'Declaration
     
    
    Public Shared Function ConvertToNewUnit( _
       ByVal valInOldUnit As String, _
       ByVal newUnit As Unit, _
       ByVal dpi As Integer _
    ) As String
    'Usage
     
    
    Dim valInOldUnit As String
    Dim newUnit As Unit
    Dim dpi As Integer
    Dim value As String
     
    value = BarCodeHelper.ConvertToNewUnit(valInOldUnit, newUnit, dpi)
    public static string ConvertToNewUnit( 
       string valInOldUnit,
       Unit newUnit,
       int dpi
    )

    Parameters

    valInOldUnit
    Value in old units
    newUnit
    New units
    dpi
    Resolution in dpi (dots per inch)
    See Also