Flash Lite 2 |
|||
| Flash Lite 2.x ActionScript Language Reference > ActionScript classes > TextFormat | |||
Object
|
+-TextFormat
public class TextFormat
extends Object
The TextFormat class represents character formatting information. Use the TextFormat class to create specific text formatting for text fields. You can apply text formatting to both static and dynamic text fields. Some properties of the TextFormat class are not available for both embedded and device fonts.
Availability: ActionScript 1.0; Flash Lite 2.0
setTextFormat (TextField.setTextFormat method), getTextFormat (TextField.getTextFormat method)
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
A string that indicates the alignment of the paragraph. |
|
|
|
A number that indicates the block indentation in points. |
|
|
|
A Boolean value that specifies whether the text is boldface. |
|
|
|
A Boolean value that indicates that the text is part of a bulleted list. |
|
|
|
A number that indicates the color of text. |
|
|
|
A string that specifies the name of the font for text. |
|
|
|
An integer that indicates the indentation from the left margin to the first character in the paragraph. |
|
|
|
A Boolean value that indicates whether text in this text format is italicized. |
|
|
|
An integer that represents the amount of vertical space in pixels (called leading) between lines. |
|
|
|
The left margin of the paragraph, in points. |
|
|
|
The right margin of the paragraph, in points. |
|
|
|
The point size of text in this text format. |
|
|
|
Specifies custom tab stops as an array of non-negative integers. |
|
|
|
Indicates the target window where the hyperlink is displayed. |
|
|
|
A Boolean value that indicates whether the text that uses this text format is underlined ( |
|
|
|
Indicates the URL that text in this text format hyperlinks to. |
Properties inherited from class Object constructor (Object.constructor property), __proto__ (Object.__proto__ property), prototype (Object.prototype property), __resolve (Object.__resolve property)
|
Signature |
Description |
|---|---|
|
TextFormat |
Creates a TextFormat object with the specified properties. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
getTextExtent |
Returns text measurement information for the text string |
Methods inherited from class Object