Enum TextAlignment

文本对齐

一种文本对齐类型的枚举。

// 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);

属性

属性类型说明
NORMALEnum正常文本对齐。
SUPERSCRIPTEnum上标文本对齐。
SUBSCRIPTEnum下标文本对齐。