GODPAPER | All Packages | All Classes | Index | Frames No Frames |
TextFieldAutoSize

Package | starling.text
Class | public class TextFieldAutoSize
Inheritance | TextFieldAutoSize Object

This class is an enumeration of constant values used in setting the autoSize property of the TextField class.

Public Constants

| Constant | Defined By
--- | --- | ---
|  | BOTH_DIRECTIONS : String = bothDirections [static] The text field will grow to the right and bottom; no line-breaks will be added. | TextFieldAutoSize
|  | HORIZONTAL : String = horizontal [static] The text field will grow to the right; no line-breaks will be added. | TextFieldAutoSize
|  | NONE : String = none [static] No auto-sizing will happen. | TextFieldAutoSize
|  | VERTICAL : String = vertical [static] The text field will grow to the bottom, adding line-breaks when necessary. | TextFieldAutoSize

Constant Detail

BOTH_DIRECTIONS | Constant

`public static const BOTH_DIRECTIONS:String = bothDirections`

The text field will grow to the right and bottom; no line-breaks will be added.

HORIZONTAL | Constant |

`public static const HORIZONTAL:String = horizontal`

The text field will grow to the right; no line-breaks will be added. The height of the text field remains unchanged.

NONE | Constant |

`public static const NONE:String = none`

No auto-sizing will happen.

VERTICAL | Constant |

`public static const VERTICAL:String = vertical`

The text field will grow to the bottom, adding line-breaks when necessary. The width of the text field remains unchanged.

Thu Jan 16 2014, 01:11 PM +08:00