Converts a double value expressed in specified UnitTypeEnum units to a double value expressed in the current document's ResolvedUnit units.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public double ToRU(
	double value,
	UnitTypeEnum srcType,
	float srcDpi
)
Visual Basic
Public Function ToRU ( _
	value As Double, _
	srcType As UnitTypeEnum, _
	srcDpi As Single _
) As Double

Parameters

value
Type: System..::..Double
The source value to convert.
srcType
Type: C1.C1Preview..::..UnitTypeEnum
The unit of measurement used to express the source value.
srcDpi
Type: System..::..Single
The source resolution (DPI) (used if srcType is Pixel).

Return Value

The double value expressed in ResolvedUnit units.

See Also