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 Double
public 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 C1PrintDocument.ConvertUnit instead.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2