Documents for PDF, .NET Edition Documentation
Convert(Single,UnitTypeEnum,UnitTypeEnum) Method

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Common Namespace > Unit Structure > Convert Method : Convert(Single,UnitTypeEnum,UnitTypeEnum) Method
The value to convert.
The source unit of measurement.
The target unit of measurement.
Converts a value from one unit of measurement to another.
Syntax
'Declaration
 
Public Overloads Shared Function Convert( _
   ByVal value As System.Single, _
   ByVal from As UnitTypeEnum, _
   ByVal to As UnitTypeEnum _
) As System.Single
public static System.float Convert( 
   System.float value,
   UnitTypeEnum from,
   UnitTypeEnum to
)

Parameters

value
The value to convert.
from
The source unit of measurement.
to
The target unit of measurement.

Return Value

value converted to to units.
See Also

Reference

Unit Structure
Unit Members
Overload List