Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript リファレンスガイド > ActionScript クラス > TextFormat > leading (TextFormat.leading プロパティ) | |||
public leading : Number
行間の垂直の行送りを示す整数。デフォルト値 null はプロパティを未設定にします。
使用できるバージョン : ActionScript 1.0、Flash Lite 2.0
次の例では、テキストフィールドを作成し、行間を 10 に設定します。
var my_fmt: TextFormat = new TextFormat();
my_fmt.leading = 10;
this.createTextField("my_txt", 1, 100, 100, 100, 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);