支援的字符類型列舉。
如要呼叫列舉,您可以呼叫其父項類別、名稱和屬性。例如
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);
屬性
屬性 | 類型 | 說明 |
---|---|---|
BULLET | Enum | 預設項目符號、圓形和實心。 |
HOLLOW_BULLET | Enum | 空心項目符號。 |
SQUARE_BULLET | Enum | 方形項目符號。 |
NUMBER | Enum | 以數字為基礎的項目符號。 |
LATIN_UPPER | Enum | 大寫拉丁字母。 |
LATIN_LOWER | Enum | 小寫拉丁字母。 |
ROMAN_UPPER | Enum | 羅馬數字、大寫項目符號。 |
ROMAN_LOWER | Enum | 羅馬數字和小寫項目符號。 |