C1.Silverlight.Excel Namespace > C1XLBook Class : TwipsToPixels Method |
'Declaration
Public Shared Function TwipsToPixels( _ ByVal twip As System.Double _ ) As System.Integer
public static System.int TwipsToPixels( System.double twip )
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2