Énumération des types d'alignements de texte.
Pour appeler une énumération, vous appelez sa classe parente, son nom et sa propriété. Par exemple,
DocumentApp.TextAlignment.NORMAL
.
// Make the first character in the first paragraph of the active tab be superscript. var documentTab = DocumentApp.getActiveDocument().getActiveTab().asDocumentTab(); var text = documentTab.getBody().getParagraphs()[0].editAsText(); text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);
Propriétés
Propriété | Type | Description |
---|---|---|
NORMAL | Enum | Alignement normal du texte. |
SUPERSCRIPT | Enum | Alignement du texte en exposant. |
SUBSCRIPT | Enum | Alignement du texte en indice. |