Enum GlyphType

ประเภทสัญลักษณ์

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

ใช้การแจงนับ 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);

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

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