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

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

Parameters

value
The value to convert in from units.
from
The source unit of measurement.
toDpi
The target dpi.

Return Value

value converted to pixels with specified dpi.
See Also

Reference

Unit Structure
Unit Members
Overload List