Enum GlyphType
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.
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);
Properties
Property | Type | Description |
BULLET | Enum | The default bullet, circular and filled. |
HOLLOW_BULLET | Enum | A hollow bullet. |
SQUARE_BULLET | Enum | A square bullet. |
NUMBER | Enum | A number based bullet. |
LATIN_UPPER | Enum | A latin, uppercase bullet. |
LATIN_LOWER | Enum | A latin, lowercase bullet. |
ROMAN_UPPER | Enum | A roman numeral, uppercase bullet. |
ROMAN_LOWER | Enum | A roman numeral, lowercase bullet. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["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,["# Enum GlyphType\n\nGlyphType\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\n### Properties\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. |"]]