Text.PadEnd

構文

Text.PadEnd(text as nullable text, count as number, optional character as nullable text) as nullable text

バージョン情報

テキスト値 text の終了位置に長さが count になるまで詰め物としてスペースを挿入した上で text 値を返します。 任意の文字 character を使用すれば、詰め物に使用する文字を指定できます。 既定の詰め物文字はスペースです。

例 1

テキスト値の末尾に文字を埋め込んで、長さが 10 文字になるようにします。

使用方法

Text.PadEnd("Name", 10)

出力

"Name      "

例 2

テキスト値の末尾に "|" を埋め込んで、長さが 10 文字になるようにします。

使用方法

Text.PadEnd("Name", 10, "|")

出力

"Name||||||"