---
title: CTTextTab
framework: coretext
role: symbol
role_heading: Class
path: coretext/cttexttab
---

# CTTextTab

A tab in a paragraph style, storing an alignment type and location.

## Declaration

```swift
class CTTextTab
```

## Overview

Overview Core Text supports five alignment types: CTTextAlignment.left, CTTextAlignment.center, CTTextAlignment.right, CTTextAlignment.justified and CTTextAlignment.natural. These alignment types are absolute, not based on the line sweep direction of text. For example, tabbed text is always positioned to the left of a right-aligned tab, whether the line sweep direction is left to right or right to left. A tab’s location, on the other hand, is relative to the back margin. A tab set at 1.5 inches, for example, is at 1.5 inches from the right in right-to-left text.

## Topics

### Creating Text Tabs

- [CTTextTabCreate(_:_:_:)](coretext/cttexttabcreate(_:_:_:).md)
- [kCTTabColumnTerminatorsAttributeName](coretext/kcttabcolumnterminatorsattributename.md)

### Getting Text Tab Data

- [CTTextTabGetAlignment(_:)](coretext/cttexttabgetalignment(_:).md)
- [CTTextTabGetLocation(_:)](coretext/cttexttabgetlocation(_:).md)
- [CTTextTabGetOptions(_:)](coretext/cttexttabgetoptions(_:).md)

### Getting the Type Identifier

- [CTTextTabGetTypeID()](coretext/cttexttabgettypeid().md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)

## See Also

### Opaque Types

- [CTFont](coretext/ctfont.md)
- [CTFontCollection](coretext/ctfontcollection.md)
- [CTFontDescriptor](coretext/ctfontdescriptor.md)
- [CTFrame](coretext/ctframe.md)
- [CTFramesetter](coretext/ctframesetter.md)
- [CTGlyphInfo](coretext/ctglyphinfo.md)
- [CTLine](coretext/ctline.md)
- [CTParagraphStyle](coretext/ctparagraphstyle.md)
- [CTRun](coretext/ctrun.md)
- [CTRunDelegate](coretext/ctrundelegate.md)
- [CTTypesetter](coretext/cttypesetter.md)
