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"]],["最后更新时间 (UTC):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."]]],[]]