.textalignment Property

Function:

Specifies the alignment for text output produced by the lcd.printaligned method.

Type:

Enum (pl_lcd_text_alignment, byte)

Value Range:

0 — PL_LCD_TEXT_ALIGNMENT_TOP_LEFT: Top, left (default).

1 — PL_LCD_TEXT_ALIGNMENT_TOP_CENTER: Top, center.

2 — PL_LCD_TEXT_ALIGNMENT_TOP_RIGHT: Top, right.

3 — PL_LCD_TEXT_ALIGNMENT_MIDDLE_LEFT: Middle, left.

4 — PL_LCD_TEXT_ALIGNMENT_MIDDLE_CENTER: Middle, center.

5 — PL_LCD_TEXT_ALIGNMENT_MIDDLE_RIGHT: Middle, right.

6 — PL_LCD_TEXT_ALIGNMENT_BOTTOM_LEFT: Bottom, left.

7 — PL_LCD_TEXT_ALIGNMENT_BOTTOM_CENTER: Bottom, center.

8 — PL_LCD_TEXT_ALIGNMENT_BOTTOM_RIGHT: Bottom, right.

See Also:

Working With Text, lcd.textorientation, lcd.texthorizontalspacing, lcd.textverticalspacing


Details

The lcd.printaligned method fits the text within a specified rectangular area. The lcd.textalignment property defines how the text will be aligned within this area. The property has no bearing on the output produced by lcd.print.


.textalignment Property

Details