VerticalAlignment
Defines local vertical alignment types for text typesetting, which refers to the vertical alignment relative to the writing direction.
| Type | Name | Interface Description |
|---|---|---|
| Enum | Bottom | • Function: Align to bottom edge. |
| Enum | Center | • Function: Center vertically. |
| Enum | Top | • Function: Align to top edge. |
Examples
Bottom
let value = APJS.VerticalAlignment.Bottom;
Center
let value = APJS.VerticalAlignment.Center;
Top
let value = APJS.VerticalAlignment.Top;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use VerticalAlignment here
}
onUpdate(deltaTime: number) {
}
}