Énumération des types de glyphes compatibles.
Pour appeler un énumération, vous devez appeler sa classe parente, son nom et sa propriété. Par exemple,
DocumentApp.GlyphType.BULLET.
Utilisez l'énumération Glyph pour définir le type de puce pour les éléments de liste.
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);
Propriétés
| Propriété | Type | Description |
|---|---|---|
BULLET | Enum | Puce circulaire et remplie par défaut. |
HOLLOW_BULLET | Enum | Une balle creuse. |
SQUARE_BULLET | Enum | Puce carrée. |
NUMBER | Enum | Puces basées sur des nombres |
LATIN_UPPER | Enum | Point d'exclamation majuscule latin. |
LATIN_LOWER | Enum | Point d'exclamation en minuscules latines. |
ROMAN_UPPER | Enum | Chiffre romain, puce majuscule. |
ROMAN_LOWER | Enum | Chiffre romain, puce minuscule. |