Stay organized with collections
Save and categorize content based on your preferences.
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 be superscript.
var text = DocumentApp.getActiveDocument().getBody().getParagraphs()[0].editAsText();
text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);