---
title: kCMTextMarkupAttribute_Alignment
framework: coremedia
role: symbol
role_heading: Global Variable
path: coremedia/kcmtextmarkupattribute_alignment
---

# kCMTextMarkupAttribute_Alignment

The text alignment in the writing direction of the first line of text.

## Declaration

```swift
let kCMTextMarkupAttribute_Alignment: CFString
```

## Discussion

Discussion This attribute’s value must be one of the constants listed below that indicate the alignment in the writing direction of the first line of text of the cue. The value (or absence) of the kCMTextMarkupAttribute_VerticalLayout attribute indicates the writing direction. The default value of this attribute is kCMTextMarkupAlignmentType_Middle. If you use this attribute, apply it to the entire attributed string.

## Topics

### Alignment Types

- [kCMTextMarkupAlignmentType_Start](coremedia/kcmtextmarkupalignmenttype_start.md)
- [kCMTextMarkupAlignmentType_Middle](coremedia/kcmtextmarkupalignmenttype_middle.md)
- [kCMTextMarkupAlignmentType_End](coremedia/kcmtextmarkupalignmenttype_end.md)
- [kCMTextMarkupAlignmentType_Left](coremedia/kcmtextmarkupalignmenttype_left.md)
- [kCMTextMarkupAlignmentType_Right](coremedia/kcmtextmarkupalignmenttype_right.md)

## See Also

### Layout

- [kCMTextMarkupAttribute_VerticalLayout](coremedia/kcmtextmarkupattribute_verticallayout.md)
- [kCMTextMarkupAttribute_TextPositionPercentageRelativeToWritingDirection](coremedia/kcmtextmarkupattribute_textpositionpercentagerelativetowritingdirection.md)
- [kCMTextMarkupAttribute_OrthogonalLinePositionPercentageRelativeToWritingDirection](coremedia/kcmtextmarkupattribute_orthogonallinepositionpercentagerelativetowritingdirection.md)
- [kCMTextMarkupAttribute_WritingDirectionSizePercentage](coremedia/kcmtextmarkupattribute_writingdirectionsizepercentage.md)
