CTParagraphStyle

Paragraph or ruler attributes in an attributed string.

Overview

A paragraph style object represents a complex attribute value in an attributed string, storing a number of subattributes that affect paragraph layout for the characters of the string. Among these subattributes are alignment, tab stops, writing direction, line-breaking mode, and indentation settings.

Topics

Creating Paragraph Styles

CTParagraphStyleCreate

Creates an immutable paragraph style.

CTParagraphStyleCreateCopy

Creates an immutable copy of a paragraph style.

Getting the Value of a Style Specifier

CTParagraphStyleGetValueForSpecifier

Obtains the current value for a single setting specifier.

Getting the Type Identifier

CTParagraphStyleGetTypeID

Returns the Core Foundation type identifier of the paragraph style object.

Data Types

CTParagraphStyleSetting

This structure is used to alter the paragraph style.

CTParagraphStyleRef

A reference to a Core Text paragraph style.

Constants

CTTextAlignment

These constants specify text alignment.

CTLineBreakMode

These constants specify what happens when a line is too long for its frame.

CTWritingDirection

These constants specify the writing direction.

CTParagraphStyleSpecifier

Constants used to query and modify a paragraph style object.

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.

CTTextTab

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

CTTypesetter

A typesetter which performs line layout.