Es 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 | La alineación de texto normal. |
SUPERSCRIPT | Enum | Es la alineación del texto en superíndice. |
SUBSCRIPT | Enum | Es la alineación del texto en el subíndice. |