TreeView for WinForms | ComponentOne
C1.Win.TreeView Namespace / CustomContentPresenter Class / ScaleToDPI Method / ScaleToDPI(Size,Int32) Method
The value for scaling.
The dpi of display device.

In This Topic
    ScaleToDPI(Size,Int32) Method
    In This Topic
    Scales a value to custom display device dpi.
    Syntax
    'Declaration
     
    
    Protected Overloads Function ScaleToDPI( _
       ByVal value As Size, _
       ByVal dpi As Integer _
    ) As Size
    protected Size ScaleToDPI( 
       Size value,
       int dpi
    )

    Parameters

    value
    The value for scaling.
    dpi
    The dpi of display device.

    Return Value

    The scaled value.
    See Also