Enum TextAlignment

การจัดข้อความ

การแจกแจงประเภทการจัดข้อความ

หากต้องการเรียก 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);

พร็อพเพอร์ตี้

พร็อพเพอร์ตี้ประเภทคำอธิบาย
NORMALEnumการจัดแนวข้อความแบบปกติ
SUPERSCRIPTEnumการจัดข้อความตัวยก
SUBSCRIPTEnumการจัดแนวข้อความตัวห้อย