# TextLayer.alignment
Horizontal alignment of the text.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## TextLayer.alignment property

Horizontal alignment of the text.

**Signature:**

```typescript
alignment: TextAlignment;
```

**Type:** [TextAlignment](/en/creator-api/types/text-alignment)

## Example

```ts
textLayer.alignment = "center";
```
