[]
Converts an absolute Unit value to the specified measurement units (this overload cannot convert to pixels).
public double ConvertUnit(Unit source, UnitTypeEnum destUnitType)
Type | Name | Description |
---|---|---|
Unit | source | The source Unit value to convert (must be an absolute value). |
UnitTypeEnum | destUnitType | The destination unit type (UnitTypeEnum; cannot be Pixel). |
Type | Description |
---|---|
double | A double representing the |
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 Pixel. To convert to pixels, use ConvertUnit(Unit, UnitTypeEnum, float) instead.
Converts an absolute Unit value to the specified measurement units.
public double ConvertUnit(Unit source, UnitTypeEnum destUnitType, float destDpi)
Type | Name | Description |
---|---|---|
Unit | source | The source Unit value to convert (must be an absolute value). |
UnitTypeEnum | destUnitType | The destination unit type (UnitTypeEnum). |
float | destDpi | The destination resolution (DPI; used if the |
Type | Description |
---|---|
double | A double representing the |
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").