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);
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-12-02(UTC)"],[[["`GlyphType` is an enumeration used to specify the type of bullet or symbol used in list items within Google Docs."],["You can use the `GlyphType` enumeration with the `setGlyphType()` method to change the bullet style of list items."],["Several predefined glyph types are available, including `BULLET`, `HOLLOW_BULLET`, `SQUARE_BULLET`, `NUMBER`, `LATIN_UPPER`, `LATIN_LOWER`, `ROMAN_UPPER`, and `ROMAN_LOWER`."],["To call a specific glyph type, use the syntax `DocumentApp.GlyphType.[GlyphTypeName]`, for example, `DocumentApp.GlyphType.BULLET` for a standard bullet."]]],[]]