Enum TextAlignment

TextAlignment.

Énumération des types d'alignements de texte.

Pour appeler une é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 be superscript.
var text = DocumentApp.getActiveDocument().getBody().getParagraphs()[0].editAsText();
text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);

Propriétés

PropriétéTypeDescription
NORMALEnumAlignement normal du texte.
SUPERSCRIPTEnumAlignement du texte en exposant.
SUBSCRIPTEnumAlignement du texte en indice.