textBaseline [ = value ] คืนค่า baseline alignment ปัจจุบัน ตั้งค่าเปลี่ยน alignment ค่าที่เป็นไปได้: top, hanging, middle, alphabetic, ideographic, bottom
Properties สำหรับสร้างข้อความ:
| Sr.No. | Property and Description |
|---|---|
| 1 | font [ = value ] คืนค่า font settings ปัจจุบัน ตั้งค่าเปลี่ยน font |
| 2 | textAlign [ = value ] คืนค่า text alignment ปัจจุบัน ตั้งค่าเปลี่ยน alignment ค่า: start, end, left, right, center |
| 3 | textBaseline [ = value ] คืนค่า baseline alignment ปัจจุบัน ตั้งค่าเปลี่ยน ค่า: top, hanging, middle, alphabetic, ideographic, bottom |
| 4 | fillText(text, x, y [, maxWidth]) เติมข้อความที่ตำแหน่งพิกัด x, y |
| 5 | strokeText(text, x, y [, maxWidth]) ขีดข้อความที่ตำแหน่งพิกัด x, y |