Enum GlyphType

GlyphType

支援的字符類型列舉。

如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如 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);

屬性

屬性類型說明
BULLETEnum預設項目符號、圓形和實心。
HOLLOW_BULLETEnum空心項目符號。
SQUARE_BULLETEnum方形項目符號。
NUMBEREnum以數字為基礎的項目符號。
LATIN_UPPEREnum大寫拉丁字母。
LATIN_LOWEREnum小寫拉丁字母。
ROMAN_UPPEREnum羅馬數字、大寫項目符號。
ROMAN_LOWEREnum羅馬數字和小寫項目符號。