Skip to main content

VerticalAlignment

Defines local vertical alignment types for text typesetting, which refers to the vertical alignment relative to the writing direction.

TypeNameInterface Description
EnumBottom

• Function: Align to bottom edge.

EnumCenter

• Function: Center vertically.

EnumTop

• 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) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies