size (TextFormat.size プロパティ)

public size : Number

このテキストフォーマットでのテキストのポイントサイズ。デフォルト値 null はプロパティを未設定にします。

メモ : アラビア語、ヘブライ語、タイ語の場合、このプロパティは段落レベルフォーマットでのみ機能します。

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

次の例では、テキストフィールドを作成し、テキストサイズを 20 ポイントに設定します。

this.createTextField("mytext",1,100,100,100,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;

var myformat: TextFormat = new TextFormat();
myformat.size = 20;

mytext.text = "This is my first text field object text";
mytext.setTextFormat(myformat);