C1.Xaml.Excel Assembly > C1.Xaml.Excel Namespace > C1XLBook Class : PixelsToTwips Method |
'Declaration Public Shared Function PixelsToTwips( _ ByVal pix As System.Double _ ) As System.Integer
'Usage Dim pix As System.Double Dim value As System.Integer value = C1XLBook.PixelsToTwips(pix)
public static System.int PixelsToTwips( System.double pix )
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.