Enum GlyphType
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
글리프유형
지원되는 글리프 유형의 열거형입니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
DocumentApp.GlyphType.BULLET
입니다.
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);
속성
속성 | 유형 | 설명 |
BULLET | Enum | 원형의 채워진 기본 글머리기호입니다. |
HOLLOW_BULLET | Enum | 흰색 글머리기호 |
SQUARE_BULLET | Enum | 정사각형 글머리기호 |
NUMBER | Enum | 숫자 기반 글머리기호입니다. |
LATIN_UPPER | Enum | 라틴 대문자 글꼴의 글머리기호입니다. |
LATIN_LOWER | Enum | 라틴 소문자 글꼴의 글머리기호입니다. |
ROMAN_UPPER | Enum | 로마 숫자, 대문자 글꼴로 된 글머리기호입니다. |
ROMAN_LOWER | Enum | 로마 숫자, 소문자 글꼴의 글머리기호 |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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. |"]]