Enum GlyphType
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
GlyphType
Es una enumeración de los tipos de glifos admitidos.
Para llamar a una enumeración, debes llamar a su clase superior, nombre y propiedad. Por ejemplo,
DocumentApp.GlyphType.BULLET
.
Usa la enumeración GlyphType
para establecer el tipo de viñeta para los elementos de lista.
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);
Propiedades
Propiedad | Tipo | Descripción |
BULLET | Enum | La viñeta predeterminada, circular y rellena. |
HOLLOW_BULLET | Enum | Una bala hueca. |
SQUARE_BULLET | Enum | Una viñeta cuadrada. |
NUMBER | Enum | Una viñeta basada en un número. |
LATIN_UPPER | Enum | Una viñeta latina en mayúscula. |
LATIN_LOWER | Enum | Una viñeta latina en minúsculas. |
ROMAN_UPPER | Enum | Un número romano, viñeta en mayúscula. |
ROMAN_LOWER | Enum | Un número romano, viñeta en minúscula. |
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-26 (UTC)
[null,null,["Última actualización: 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. |"]]