Label.HorizontalAlign
Enum
Module: cc
Enum for text alignment.
Index
LEFT
CENTER
RIGHT
Details
LEFT
Alignment left for text.
meta | description |
---|---|
Type | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:36 |
CENTER
Alignment center for text.
meta | description |
---|---|
Type | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:41 |
RIGHT
Alignment right for text.
meta | description |
---|---|
Type | Number |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/components/CCLabel.js:46 |