[]
        
(Showing Draft Content)

C1.Excel.C1XLBook.TwipsToPixels

TwipsToPixels Method

TwipsToPixels(double)

Converts a twips measurement into screen pixels.

Declaration
public static int TwipsToPixels(double twip)
Parameters
Type Name Description
double twip

Measurement in twips.

Returns
Type Description
int

Measurement in screen pixels.

Remarks
<p>Excel stores measurements in twips (1/20th of a point), 

a resolution-independent unit. .NET controls, on the other hand, usually express measurements in pixels. This method provides an easy way to convert pixel measurements into twips using the current screen resolution.

PixelsToTwips(double)