Documents for Excel .NET Edition | GCDocuments
GrapeCity.Documents.Excel Namespace / IGraphicsInfo Interface / GetDigitWidth Method
Text formats
In This Topic
    GetDigitWidth Method
    In This Topic
    Gets the maximum width of 0~9 digits in device independent pixel.
    Syntax
    System.double GetDigitWidth( 
       TextFormatInfo textFormat
    )

    Parameters

    textFormat
    Text formats

    Return Value

    The maximum width of 0~9 digits.
    Remarks
    Useful formulas for wrapping native implementation which returns pixels:

    [Device independent pixel] = Pixel / [DPI Scale]

    [DPI Scale] = DPI / 96

    See Also