Ribbon for WinForms | ComponentOne
C1.Win.Util Namespace / DpiHelper Class / ScaleToDPI Method / ScaleToDPI(Thickness,Int32) Method
The value for scaling.
The DPI value for the current display device.

In This Topic
    ScaleToDPI(Thickness,Int32) Method
    In This Topic
    Scales a C1.Framework.Thickness value to the dpi.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ScaleToDPI( _
       ByVal value As Thickness, _
       ByVal dpi As Integer _
    ) As Thickness
    public static Thickness ScaleToDPI( 
       Thickness value,
       int dpi
    )

    Parameters

    value
    The value for scaling.
    dpi
    The DPI value for the current display device.

    Return Value

    The scaled value.
    See Also