Enum TextAlignment | Apps Script | Google for Developers (original) (raw)
テキストの配置
テキストの配置の種類の列挙型。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、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 | 下付き文字のテキストの配置。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-22 UTC。