enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
DocumentApp.TextAlignment.NORMAL입니다.
// Make the first character in the first paragraph of the active tab be
// superscript.
const documentTab =
DocumentApp.getActiveDocument().getActiveTab().asDocumentTab();
const text = documentTab.getBody().getParagraphs()[0].editAsText();
text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);
[[["이해하기 쉬움","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-03(UTC)"],[[["TextAlignment is used to set the alignment of text, such as normal, superscript, or subscript."],["You can access TextAlignment properties using `DocumentApp.TextAlignment` followed by the specific property like `NORMAL` or `SUPERSCRIPT`."],["The provided code snippet demonstrates how to apply superscript alignment to the first character of a paragraph."]]],[]]