Creates a unit from device-dependent pixels in the specified unit type.

Namespace:  Telerik.Reporting.Drawing
Assembly:  Telerik.Reporting (in Telerik.Reporting.dll) Version: 12.2.18.1212 (12.2.18.1212)

Syntax

public static Unit FromPixels(
	double devicePixels,
	UnitType resultType
)

Parameters

devicePixels
Type: SystemDouble
The magnitude of the new Unit in device-dependent pixels.
resultType
Type: Telerik.Reporting.DrawingUnitType
The unit type of the newly created Unit

Return Value

Type: Unit
Newly created Unit

Version Information

Supported in: 1.0.1

See Also

In this article
Not finding the help you need?