Enum TextAlignment
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
TextAlignment is an enumeration used to specify text alignment types.
Text alignment enums are accessed via DocumentApp.TextAlignment.
Examples include NORMAL, SUPERSCRIPT, and SUBSCRIPT.
TextAlignment
An enumeration of the type of text alignments.
To call an enum, you call its parent class, name, and property. For example,
DocumentApp.TextAlignment.NORMAL.
// Make the first character in the first paragraph of the active tab be// superscript.constdocumentTab=DocumentApp.getActiveDocument().getActiveTab().asDocumentTab();consttext=documentTab.getBody().getParagraphs()[0].editAsText();text.setTextAlignment(0,0,DocumentApp.TextAlignment.SUPERSCRIPT);
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[],[]]