構文
Text.PadStart(
text as nullable text,
count as number,
optional character as nullable text
) as nullable text
バージョン情報
テキスト値textの先頭にスペースを挿入して、count長さに埋め込まれたtext値を返します。 省略可能な文字 character を使用して、パディングに使用する文字を指定できます。 既定のパッド文字はスペースです。
例 1
長さが 10 文字になるように、テキスト値の先頭を埋め込みます。
使用方法
Text.PadStart("Name", 10)
アウトプット
" Name"
例 2
テキスト値の先頭に "|" を埋め込み、長さが 10 文字になるようにします。
使用方法
Text.PadStart("Name", 10, "|")
アウトプット
"||||||Name"