Stay organized with collections
Save and categorize content based on your preferences.
GlyphType
An enumeration of the supported glyph types.
To call an enum, you call its parent class, name, and property. For example,
DocumentApp.GlyphType.BULLET.
Use the GlyphType enumeration to set the bullet type for list items.
constbody=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);
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["\u003cp\u003e\u003ccode\u003eGlyphType\u003c/code\u003e is an enumeration used to specify the type of bullet or symbol used in list items within Google Docs.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the \u003ccode\u003eGlyphType\u003c/code\u003e enumeration with the \u003ccode\u003esetGlyphType()\u003c/code\u003e method to change the bullet style of list items.\u003c/p\u003e\n"],["\u003cp\u003eSeveral predefined glyph types are available, including \u003ccode\u003eBULLET\u003c/code\u003e, \u003ccode\u003eHOLLOW_BULLET\u003c/code\u003e, \u003ccode\u003eSQUARE_BULLET\u003c/code\u003e, \u003ccode\u003eNUMBER\u003c/code\u003e, \u003ccode\u003eLATIN_UPPER\u003c/code\u003e, \u003ccode\u003eLATIN_LOWER\u003c/code\u003e, \u003ccode\u003eROMAN_UPPER\u003c/code\u003e, and \u003ccode\u003eROMAN_LOWER\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo call a specific glyph type, use the syntax \u003ccode\u003eDocumentApp.GlyphType.[GlyphTypeName]\u003c/code\u003e, for example, \u003ccode\u003eDocumentApp.GlyphType.BULLET\u003c/code\u003e for a standard bullet.\u003c/p\u003e\n"]]],[],null,["GlyphType\n\nAn enumeration of the supported glyph types.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nDocumentApp.GlyphType.BULLET`.\n\nUse the `Glyph``Type` enumeration to set the bullet type for list items.\n\n```javascript\nconst body =\n DocumentApp.getActiveDocument().getActiveTab().asDocumentTab().getBody();\n\n// Insert at list item, with the default nesting level of zero.\nbody.appendListItem('Item 1');\n\n// Append a second list item, with a nesting level of one, indented one inch.\n// The two items have different bullet glyphs.\nbody.appendListItem('Item 2')\n .setNestingLevel(1)\n .setIndentStart(72)\n .setGlyphType(DocumentApp.GlyphType.SQUARE_BULLET);\n``` \n\nProperties\n\n| Property | Type | Description |\n|-----------------|--------|------------------------------------------|\n| `BULLET` | `Enum` | The default bullet, circular and filled. |\n| `HOLLOW_BULLET` | `Enum` | A hollow bullet. |\n| `SQUARE_BULLET` | `Enum` | A square bullet. |\n| `NUMBER` | `Enum` | A number based bullet. |\n| `LATIN_UPPER` | `Enum` | A latin, uppercase bullet. |\n| `LATIN_LOWER` | `Enum` | A latin, lowercase bullet. |\n| `ROMAN_UPPER` | `Enum` | A roman numeral, uppercase bullet. |\n| `ROMAN_LOWER` | `Enum` | A roman numeral, lowercase bullet. |"]]