列舉支援的字形類型。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
DocumentApp.GlyphType.BULLET
。
使用 Glyph
列舉,設定清單項目的項目符號類型。
const body = DocumentApp.getActiveDocument().getActiveTab().asDocumentTab().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 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 | 羅馬數字,小寫的圓點。 |