85
CITIZEN UWP POS Print SDK - Programming Manual
3.3.8. SetDisplayModeAsync method
Syntax
Task<int> SetDisplayModeAsync (int displayMode)
Parameter
The meanings and settable values of the parameters are as follows.
Value
Meaning
Settable range
DisplayMode
Display mode
CDP_OVERWRITE(1): Overwrite mode
CDP_VERTICALSCROLL(2):
Vertical scroll mode
CDP_HORIZONTALSCROLL(3):
Horizontal scroll mode
Description
This method sets the following display modes.
DisplayMode
Overview
Overwrite
Overwrites the text at the cursor position and moves the cursor to the right.
(The cursor moves to the bottom left edge for input when it is at the top right
edge, and the cursor moves to the top left edge for input when it is at the
bottom right edge.)
VerticalScroll
Scrolls the display line of the top edge to the bottom edge by cursor up
movement when the cursor is at the top edge (or by left movement when it
is at the left edge).
Scrolls the display line of the bottom edge to the top edge by cursor down
movement when the cursor is at the bottom edge (or by right movement
when it is at the right edge).
HorizontalScroll
Scrolls the text leftward in respect to the current cursor line by cursor right
movement (or by text input) when the cursor is at the right edge.
Scrolls the text rightward in respect to the current cursor line by cursor left
movement when the cursor is at the left edge.
Return value
Return CDP_SUCCESS (0) in success. Please refer to "
"" for the error code except it.
Example
await display.SetDisplayModeAsync(LineDisplayConst.CDP_VERTICALSCROLL);