Enum GlyphType
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
GlifyTyp
Wyliczenie obsługiwanych typów glifu.
Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
DocumentApp.GlyphType.BULLET
.
Aby ustawić typ wypunktowania dla elementów listy, użyj wyliczenia 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);
Właściwości
Właściwość | Typ | Opis |
BULLET | Enum | Domyślna kula, okrągła i wypełniona. |
HOLLOW_BULLET | Enum | Pusty punktor. |
SQUARE_BULLET | Enum | Punktor kwadratowy. |
NUMBER | Enum | Punktor z liczbą. |
LATIN_UPPER | Enum | Wielka litera A w ramce. |
LATIN_LOWER | Enum | mała litera łacińska, |
ROMAN_UPPER | Enum | Rzymska cyfra, pogrubiona litera. |
ROMAN_LOWER | Enum | Rzymska cyfra, mała litera w kółku. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 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. |"]]