Enum TextAlignment

TextAlignment

Es una enumeración del tipo de alineaciones de texto.

Para llamar a una enum, debes llamar a su clase superior, nombre y propiedad. Por ejemplo, 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);

Propiedades

PropiedadTipoDescripción
NORMALEnumAlineación normal del texto
SUPERSCRIPTEnumLa alineación del texto del superíndice.
SUBSCRIPTEnumLa alineación del texto del subíndice.