69
CITIZEN UWP POS Print SDK - Programming Manual
2.3.37. MapMode property
Syntax
int MapMode
Attribute
Read/Write
Description
This property holds the mapping mode of the printer. The mapping mode defines the unit of measure
used for other properties, such as line heights and line spacing. The map mode values are as follows.
Value
Meaning
CMP_MM_DOTS
The printer’s d
ot width.
CMP_MM_TWIPS
1/1440 of an inch.
CMP_MM_ENGLISH
0.001 inch.
CMP_MM_METRIC
0.01 millimeter.
The method and the properties to be affected by the MapMode property are as follows.
PrintGS1DataBarStackedAsync method
: moduleSize, maxSize, alignment
PageModeHorizontalPosition property
PageModeVerticalPosition property
The ConnectAsync method must be complete before accessing this property. This property is initialized
to CMP_MM_DOTS at ConnectAsync method.
Set property
int SetMapMode (int mode)
Please specify the property value that you want to set in the parameter.
Return CMP_SUCCESS (0) in success. Please refer to "
" for the error code except it.
Get property
int GetMapMode ()
Returns the mapping mode that is set as the return value.
Example
printer.SetMapMode( ESCPOSConst.CMP_MM_DOTS );
await printer.UnitFeedAsync( 200 );
// 200 dots feed
printer.SetMapMode( ESCPOSConst.CMP_MM_METRIC );
await printer.UnitFeedAsync( 2500 );
// 25 millimeter feed