![Citizen CL-E300 Скачать руководство пользователя страница 34](http://html1.mh-extra.com/html/citizen/cl-e300/cl-e300_programming-manual_2610002034.webp)
CITIZEN Android Label Print SDK
—
Programming Manual
34
2.2.17 MeasurementUnit property
Syntax
int MeasurementUnit
Attribute
Read/Write
Description
Sets the measurement unit.
Value
Description
CLS_UNIT_MILLI (0)
Metric system
CLS_UNIT_INCH (1)
Inch system
Setter method
int setMeasurementUnit (int measurementUnit)
The default value in the printer is "1."
Returns CLS_SUCCESS (0) on success. See "
" for the error codes.
Getter method
int getMeasurementUnit ()
Returns the set value. If nothing has been set, it returns CLS_PROPERTY_DEFAULT(999999).
Example
int unit;
printer.setMeasurementUnit(LabelConst.CLS_UNIT_MILLI);
unit = printer.getMeasurementUnit();