フィードバックを送信
Enum TextAlignment
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テキスト の配置
テキストの配置の種類の列挙型。
列挙型を呼び出すには、その親クラス、名前、プロパティを呼び出します。たとえば、
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 および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
ご意見をお聞かせください
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-26 UTC。"],[],[]]