Enum GlyphType

GlyphType

列舉支援的字形類型。

如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如 DocumentApp.GlyphType.BULLET

使用 GlyphType 列舉,設定清單項目的項目符號類型。

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);

屬性

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