italic (TextFormat.italic プロパティ)

public italic : Boolean

このテキストフォーマットのテキストをイタリックにするかどうかを示すブール値。デフォルト値 null はプロパティを未設定にします。

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

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

次の例では、テキストフィールドを作成し、テキストスタイルをイタリックに設定します。

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

var myformat: TextFormat = new TextFormat();
myformat.italic = true;

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