Views User Guides > Foundation > Printing in Views > The IlvPrintUnit Class
The IlvPrintUnit Class
The IlvPrintUnit class allows you to describe a dimensional unit. Units of various types can be converted.
Four commonly used units have been defined:
*IlvPrintPointUnit represents units in centimeters. This is the reference unit.
*IlvPrintCMUnit represents units in centimeters.
*IlvPrintInchUnit represents units in inches.
*IlvPrintPicaUnit represents units in centimeters.
This class is mainly useful when using IlvPSPrinter.
Converting units:
IlvPrintCMUnit oneMeter(100.0);
IlvPrintInchUnit oneMeterInInches(oneMeter);
IlvDim result = oneMeterInInches.getUnits();
Published date: 05/24/2022
Last modified date: 02/24/2022