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

Getting the Value of a Style Specifier

Getting the Type Identifier

func CTParagraphStyleGetTypeID() -> CFTypeID

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

Data Types

struct CTParagraphStyleSetting

This structure is used to alter the paragraph style.

class CTParagraphStyle

A reference to a Core Text paragraph style.

Constants

enum CTTextAlignment

These constants specify text alignment.

enum CTLineBreakMode

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

enum CTWritingDirection

These constants specify the writing direction.

enum 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.