align (TextFormat.align プロパティ)

public align : String

段落の整列の設定を示すストリングです。静止テキストおよびダイナミックテキストにこのプロパティを適用できます。次の一覧に、このプロパティに指定できる値を示します。

デフォルト値 null はプロパティを未設定にします。

使用できるバージョン : ActionScript 1.0、Flash Lite 2.0

次の例では、境界線のあるテキストフィールドを作成し、TextFormat.align を使用してテキストを中央揃えにします。

var my_fmt: TextFormat = new TextFormat();
my_fmt.align = "center";

this.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.border = true;
my_txt.text = "this is my first text field object text";
my_txt.setTextFormat(my_fmt);