User Guide

TextFormat class 943
Constructor for the TextFormat class
Availability
Flash Player 6.
Usage
new TextFormat([font:String, [size:Number, [color:Number, [bold:Boolean,
[italic:Boolean, [underline:Boolean, [url:String, [target:String,
[align:String, [leftMargin:Number, [rightMargin:Number, [indent:Number,
[leading:Number]]]]]]]]]]]]]) : TextFormat
Parameters
font
The name of a font for text as a string.
size An integer that indicates the point size.
color The color of text using this text format. A number containing three 8-bit RGB
components; for example, 0xFF0000 is red, and 0x00FF00 is green.
bold A Boolean value that indicates whether the text is boldface.
italic A Boolean value that indicates whether the text is italicized.
underline A Boolean value that indicates whether the text is underlined.
url The URL to which the text in this text format hyperlinks. If url is an empty string, the text
does not have a hyperlink.
target The target window where the hyperlink is displayed. If the target window is an empty
string, the text is displayed in the default target window
_self. If the url parameter is set to an
empty string or to the value
null, you can get or set this property, but the property will have
no effect.
align The alignment of the paragraph, represented as a string. If "left", the paragraph is left-
aligned. If
"center", the paragraph is centered. If "right", the paragraph is right-aligned.
TextFormat.indent
Indicates the indentation from the left margin to the first character in
the paragraph.
TextFormat.italic
Indicates whether text is italicized.
TextFormat.leading
Indicates the amount of vertical space (called leading) between lines.
TextFormat.leftMargin
Indicates the left margin of the paragraph, in points.
TextFormat.rightMargin
Indicates the right margin of the paragraph, in points.
TextFormat.size
Indicates the point size of text.
TextFormat.tabStops
Specifies custom tab stops.
TextFormat.target
Indicates the window in a browser where a hyperlink is displayed.
TextFormat.underline
Indicates whether text is underlined.
TextFormat.url
Indicates the URL to which the text links.
Property Description