Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript Language Reference > ActionScript classes > TextFormat > blockIndent (TextFormat.blockIndent property) | |||
public blockIndent : Number
A number that indicates the block indentation in points. Block indentation is applied to an entire block of text; that is, to all lines of the text. In contrast, normal indentation (TextFormat.indent) affects only the first line of each paragraph. If this property is null, the TextFormat object does not specify block indentation.
Availability: ActionScript 1.0; Flash Lite 2.0
This example creates a text field with a border and sets the blockIndent to 20.
this.createTextField("mytext",1,100,100,100,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
var myformat:TextFormat = new TextFormat();
myformat.blockIndent = 20;
mytext.text = "This is my first text field object text";
mytext.setTextFormat(myformat);