Constructor
new TextStyle()
Extends
- SpriteStyle
Member
(static) EMPTY :TextStyle
align :String
Represents the horizontal alignment of text paragraphs using this text format.
- Default Value:
- "left"
asPassword :Boolean
Specifies whether the text field is a password text field.
If the value of this property is true, the text field is considered a password text field, and the input characters are hidden by using an asterisk rather than the actual character. If false, the text field is not considered a password text field.bgColor :String
The text background color is represented as a string.
bold :Boolean
Is it bold?
borderColor :String
The text border color is represented as a string.
italic :Boolean
Indicates whether the text in this text format is italic.
- Default Value:
- false
leading :Number
Vertical line spacing (in pixels)
overflow :String
Overflow processing
padding :Array
Default margin information
[左边距,上边距,右边距,下边距] (margins are in pixels)
stroke :Number
The stroke width (in pixels).
The default value of 0, said no stroke.- Default Value:
- 0
strokeColor :String
Color color, expressed as a string.
- Default Value:
- "#000000";
underline :Boolean
Underline?
underlineColor :String
Underline color
valign :String
Represents the vertical alignment of text paragraphs using this text format.
- Default Value:
- "top"
wordWrap :Boolean
Indicates whether the text field that uses this text format is automatically fed.
If the value of wordWrap is true, the text field is automatically wrapped; if the value is false, the text field does not automatically line up.- Default Value:
- false。
Methods
create()
Create from object pool