[]
        
(Showing Draft Content)

C1.Framework.Element.ScaleToDeviceDPI

ScaleToDeviceDPI Method

ScaleToDeviceDPI(Style)

Scales the Style instance uses the DeviceDpi value if this element has a HostControl.

Declaration
protected void ScaleToDeviceDPI(Style value)
Protected Sub ScaleToDeviceDPI(value As Style)
Parameters
Type Name Description
Style value

The style for scaling.

Remarks

This method doen't scale the Font property.

ScaleToDeviceDPI(int)

Scales a value uses the DeviceDpi value if this element has a HostControl.

Declaration
protected int ScaleToDeviceDPI(int value)
Protected Function ScaleToDeviceDPI(value As Integer) As Integer
Parameters
Type Name Description
int value

The value for scaling.

Returns
Type Description
int

The scaled value.

ScaleToDeviceDPI(Size)

Scales a value uses the DeviceDpi value if this element has a HostControl.

Declaration
protected Size ScaleToDeviceDPI(Size value)
Protected Function ScaleToDeviceDPI(value As Size) As Size
Parameters
Type Name Description
Size value

The value for scaling.

Returns
Type Description
Size

The scaled value.

ScaleToDeviceDPI(Thickness)

Scales a value uses the DeviceDpi value if this element has a HostControl.

Declaration
protected Thickness ScaleToDeviceDPI(Thickness value)
Protected Function ScaleToDeviceDPI(value As Thickness) As Thickness
Parameters
Type Name Description
Thickness value

The value for scaling.

Returns
Type Description
Thickness

The scaled value.