alignment
| Add Visual Format for more information about alignments. |
Specifies the horizontal and vertical alignment of an element. Its value is a bitwise OR of a horizontal alignment option and a vertical alignment option.
| Horizontal Alignment | Vertical Alignment |
|---|---|
|
|
|
|
|
|
|
|
Example
alignment = StyleConstant.H_CENTER | StyleConstant.V_CENTER;
|
Either syntax below can be used in component script:
For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required. |