Enum TextAlignment

TextAlignment

テキストの配置の種類を列挙します。

列挙型を呼び出すには、その親のクラス、名前、プロパティを呼び出します。たとえば、 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);

プロパティ

プロパティタイプ説明
NORMALEnum通常のテキストの配置。
SUPERSCRIPTEnum上付き文字の配置。
SUBSCRIPTEnum下付き文字のテキストの配置。