[]
        
(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)
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)
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)
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)
Parameters
Type Name Description
Thickness value

The value for scaling.

Returns
Type Description
Thickness

The scaled value.