Una enumeración del tipo de alineaciones de texto.
Para llamar a una enumeración, debes llamar a su clase superior, nombre y propiedad. Por ejemplo,
DocumentApp.TextAlignment.NORMAL.
// Make the first character in the first paragraph of the active tab be // superscript. const documentTab = DocumentApp.getActiveDocument().getActiveTab().asDocumentTab(); const text = documentTab.getBody().getParagraphs()[0].editAsText(); text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);
Propiedades
| Propiedad | Tipo | Descripción |
|---|---|---|
NORMAL | Enum | Alineación normal del texto |
SUPERSCRIPT | Enum | La alineación del texto del superíndice. |
SUBSCRIPT | Enum | La alineación del texto del subíndice. |