Énumération des types d'alignements de texte.
Pour appeler un énumération, vous devez appeler 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. const documentTab = DocumentApp.getActiveDocument().getActiveTab().asDocumentTab(); const 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 exposant. |