[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IGraphicsInfo.GetDigitWidth

GetDigitWidth Method

GetDigitWidth(TextFormatInfo)

Gets the maximum width of 0~9 digits in device independent pixel.

Declaration
double GetDigitWidth(TextFormatInfo textFormat)
Parameters
Type Name Description
TextFormatInfo textFormat

Text formats

Returns
Type Description
double

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