テキストの配置タイプの列挙型。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
DocumentApp.TextAlignment.NORMAL
です。
// Make the first character in the first paragraph of the active tab be superscript. var documentTab = DocumentApp.getActiveDocument().getActiveTab().asDocumentTab(); var text = documentTab.getBody().getParagraphs()[0].editAsText(); text.setTextAlignment(0, 0, DocumentApp.TextAlignment.SUPERSCRIPT);
プロパティ
プロパティ | タイプ | 説明 |
---|---|---|
NORMAL | Enum | 標準のテキスト配置。 |
SUPERSCRIPT | Enum | 上付き文字のテキストの配置。 |
SUBSCRIPT | Enum | 下付き文字のテキストの配置。 |