การแจกแจงประเภทการจัดข้อความ
หากต้องการเรียก enum คุณจะต้องเรียกคลาส ชื่อ และพร็อพเพอร์ตี้ระดับบนสุด เช่น
DocumentApp.TextAlignment.NORMAL
// Make the first character in the first paragraph be superscript. var text = DocumentApp.getActiveDocument().getBody().getParagraphs()[0].editAsText(); text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);
พร็อพเพอร์ตี้
พร็อพเพอร์ตี้ | ประเภท | คำอธิบาย |
---|---|---|
NORMAL | Enum | การจัดแนวข้อความแบบปกติ |
SUPERSCRIPT | Enum | การจัดข้อความตัวยก |
SUBSCRIPT | Enum | การจัดแนวข้อความตัวห้อย |