| C1.C1Report.4 Assembly > C1.C1Preview Namespace > C1PrintDocument Class > ConvertUnit Method : ConvertUnit(Unit,UnitTypeEnum) Method |
'Declaration Public Overloads Function ConvertUnit( _ ByVal source As Unit, _ ByVal destUnitType As UnitTypeEnum _ ) As System.Double
public System.double ConvertUnit( Unit source, UnitTypeEnum destUnitType )
The source must be an absolute value, such as "5mm", "1.5in", "8" and so on. The source cannot be an expression (such as "prev.width" or "prev.height*2+2mm").
The destination units cannot be UnitTypeEnum.Pixel. To convert to pixels, use ConvertUnit(Unit,UnitTypeEnum,Single) instead.