constbody=DocumentApp.getActiveDocument().getActiveTab().asDocumentTab().getBody();// Append a paragraph, with heading 1.constpar1=body.appendParagraph('Title');par1.setHeading(DocumentApp.ParagraphHeading.HEADING1);// Append a paragraph, with heading 2.constpar2=body.appendParagraph('SubTitle');par2.setHeading(DocumentApp.ParagraphHeading.HEADING2);// Append a paragraph, with normal heading.constpar3=body.appendParagraph('Text');par3.setHeading(DocumentApp.ParagraphHeading.NORMAL);
[[["わかりやすい","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-22 UTC。"],[[["`ParagraphHeading` enumeration is used to set heading styles for paragraphs in Google Docs."],["You can use properties like `NORMAL`, `HEADING1` to `HEADING6`, `TITLE`, and `SUBTITLE` to define different heading levels."],["The provided code snippet demonstrates how to append paragraphs with different heading styles using `setHeading()` method."],["The table lists all available `ParagraphHeading` properties, their types, and descriptions."]]],[]]