Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType.BarCode Namespace / BarCodeHelper Class / ConvertUnit Method
Value in millimeters
New unit of measure
Resolution in dpi (dots per inch)


In This Topic
    ConvertUnit Method
    In This Topic
    Converts the value in metric (millimeters) to an equivalent value in another unit of measure.
    Syntax
    'Declaration
     
    
    Public Shared Function ConvertUnit( _
       ByVal val As Double, _
       ByVal unit As Unit, _
       ByVal dpi As Integer _
    ) As String
    'Usage
     
    
    Dim val As Double
    Dim unit As Unit
    Dim dpi As Integer
    Dim value As String
     
    value = BarCodeHelper.ConvertUnit(val, unit, dpi)
    public static string ConvertUnit( 
       double val,
       Unit unit,
       int dpi
    )

    Parameters

    val
    Value in millimeters
    unit
    New unit of measure
    dpi
    Resolution in dpi (dots per inch)
    See Also