ComponentOne Excel for UWP
C1.UWP.Excel Assembly / C1.Xaml.Excel Namespace / C1XLBook Class / TwipsToPixels Method
Measurement in twips.

In This Topic
    TwipsToPixels Method
    In This Topic
    Converts a twip measurement into screen pixels.
    Syntax
    'Declaration
     
    Public Shared Function TwipsToPixels( _
       ByVal twip As System.Double _
    ) As System.Integer
    public static System.int TwipsToPixels( 
       System.double twip
    )

    Parameters

    twip
    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

    See Also