Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript リファレンスガイド > ActionScript クラス > TextFormat > bold (TextFormat.bold プロパティ) | |||
public bold : Boolean
テキストフィールドがボールド体であるかどうかを指定するブール値。デフォルト値 null はプロパティを未設定にします。値が true の場合は、テキストがボールド体になります。
メモ : アラビア語、ヘブライ語、タイ語の場合、このプロパティは段落レベルフォーマットでのみ機能します。
使用できるバージョン : ActionScript 1.0、Flash Lite 2.0
次の例では、ボールド体の文字を含むテキストフィールドを作成します。
var my_fmt: TextFormat = new TextFormat();
my_fmt.bold = true;
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 text field object text";
my_txt.setTextFormat(my_fmt);