TextFormat class
777
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
Содержание FLEX
Страница 1: ...Flex ActionScript Language Reference ...
Страница 8: ......
Страница 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0 ...
Страница 76: ......
Страница 133: ...break 133 See also for for in do while while switch case continue throw try catch finally ...
Страница 135: ...case 135 See also break default strict equality switch ...
Страница 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while ...
Страница 229: ...while 229 i 3 The following result is written to the log file 0 3 6 9 12 15 18 See also do while continue for for in ...
Страница 808: ...808 Chapter 7 ActionScript for Flash ...
Страница 810: ...810 Appendix A Deprecated Flash 4 operators ...
Страница 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code ...
Страница 816: ...816 Appendix B Keyboard Keys and Key Code Values ...
Страница 822: ...822 Index ...