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