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 (世界標準時間)。"],[[["`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."]]],[]]