Converts a twip measurement into screen pixels.

Namespace:  C1.Silverlight.Excel
Assembly:  C1.Silverlight.Excel.5 (in C1.Silverlight.Excel.5.dll)

Syntax

C#
public static int TwipsToPixels(
	double twip
)
Visual Basic
Public Shared Function TwipsToPixels ( _
	twip As Double _
) As Integer

Parameters

twip
Type: System..::..Double
Measurement in twips.

Return Value

Measurement in screen pixels.

Remarks

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)

See Also