Enum GlyphType

GlyphType

การแจงนับประเภทรูปอักขระที่รองรับ

หากต้องการเรียก enum คุณจะต้องเรียกคลาส ชื่อ และพร็อพเพอร์ตี้ระดับบนสุด เช่น DocumentApp.GlyphType.BULLET

ใช้การแจกแจง GlyphType เพื่อตั้งค่าประเภทสัญลักษณ์หัวข้อย่อยสำหรับรายการ

var body = DocumentApp.getActiveDocument().getBody();

// Insert at list item, with the default nesting level of zero.
 body.appendListItem("Item 1");

 // Append a second list item, with a nesting level of one, indented one inch.
 // The two items will have different bullet glyphs.
 body.appendListItem("Item 2").setNestingLevel(1).setIndentStart(72)
     .setGlyphType(DocumentApp.GlyphType.SQUARE_BULLET);

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

พร็อพเพอร์ตี้Typeคำอธิบาย
BULLETEnumสัญลักษณ์หัวข้อย่อยเริ่มต้น แบบวงกลม และเติมสี
HOLLOW_BULLETEnumหัวข้อย่อยแบบไม่ทึบ
SQUARE_BULLETEnumสัญลักษณ์หัวข้อย่อยจัตุรัส
NUMBEREnumสัญลักษณ์แสดงหัวข้อย่อยแบบตัวเลข
LATIN_UPPEREnumหัวข้อย่อยแบบละตินตัวพิมพ์ใหญ่
LATIN_LOWEREnumหัวข้อย่อยแบบละติน ตัวพิมพ์เล็ก
ROMAN_UPPEREnumตัวเลขโรมันสัญลักษณ์หัวข้อย่อยตัวพิมพ์ใหญ่
ROMAN_LOWEREnumตัวเลขโรมันหัวข้อย่อยแบบตัวพิมพ์เล็ก