CTTextTab

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

Overview

Core Text supports five alignment types: kCTTextAlignmentLeft, kCTTextAlignmentCenter, kCTTextAlignmentRight, kCTTextAlignmentJustified and kCTTextAlignmentNatural. 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

Creates and initializes a new text tab object.

Getting Text Tab Data

CTTextTabGetAlignment

Returns the text alignment of the tab.

CTTextTabGetLocation

Returns the tab's ruler location.

CTTextTabGetOptions

Returns the dictionary of attributes associated with the tab.

Getting the Type Identifier

CTTextTabGetTypeID

Returns the Core Foundation type identifier of the text tab object.

Data Types

CTTextTabRef

A reference to a text tab object.

Constants

kCTTabColumnTerminatorsAttributeName

Specifies the terminating character for a tab column.

See Also

Opaque Types

CTFont

A font object.

CTFramesetter

Generate text frames.

CTGlyphInfo

Override a font's specified mapping from Unicode to the glyph ID.

CTLine

A line of text.

CTParagraphStyle

Paragraph or ruler attributes in an attributed string.

CTTypesetter

A typesetter which performs line layout.