
TextFormat.italic Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
897
To set the indentation for a range of paragraphs, apply the format using start and end index
arguments that include the desired paragraphs:
theField_txt.setTextFormat(0, 24, format);
If automatic word-wrapping is disabled for a text field, large values for indent can force
text to overflow the text field’s right border. If word-wrapping is enabled, large values for
indent cause lines to wrap.
The default
indent value (as contained in the TextFormat object returned by TextField.
getTextFormat()) for a text field that contains text is 0. For a text field without any text, the
indent value is null. For a completely new TextFormat object, it is also null, indicating that
indent will not be set when the format is applied to a text field:
trace(anyUnformattedField_txt.getTextFormat().indent); // Displays: 0
var format = new TextFormat();
trace(format.indent); // Displays: "null"
See Also
TextField.wordWrap, TextFormat.align, TextFormat.blockIndent
TextFormat.italic Property
Boolean; specifies italicized character display
Flash 6
read/write
theFormat.italic
Description
The Boolean italic property specifies whether characters are displayed in an italic type-
face (
true) or a regular (nonitalic) typeface (false).
To set italics for an entire ...