Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript リファレンスガイド > ActionScript クラス > TextFormat > indent (TextFormat.indent プロパティ) | |||
public indent : Number
左マージンから段落の先頭文字までのインデントを示す整数。デフォルト値 null はプロパティを未設定にします。
使用できるバージョン : ActionScript 1.0、Flash Lite 2.0
次の例では、テキストフィールドを作成し、インデントを 10 に設定します。
this.createTextField("mytext",1,100,100,100,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
var myformat: TextFormat = new TextFormat();
myformat.indent = 10;
mytext.text = "this is my first text field object text";
mytext.setTextFormat(myformat);
blockIndent (TextFormat.blockIndent プロパティ)