Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.IO.OpenXml Namespace / UnitConverter Class / PixelsToCharacters Method
The pixel value to be converted to character widths.


In This Topic
    PixelsToCharacters Method
    In This Topic
    Converts a measurement from pixels to character widths.
    Syntax
    'Declaration
     
    
    Public Function PixelsToCharacters( _
       ByVal pixel As Integer _
    ) As Double
    'Usage
     
    
    Dim instance As UnitConverter
    Dim pixel As Integer
    Dim value As Double
     
    value = instance.PixelsToCharacters(pixel)
    public double PixelsToCharacters( 
       int pixel
    )

    Parameters

    pixel
    The pixel value to be converted to character widths.

    Return Value

    A double value represents the corresponding number of character widths.
    See Also