Contents

NSTextBlock

A block of text laid out in a subregion of the text container.

Declaration

class NSTextBlock

Overview

A text block appears as an attribute of a paragraph, and as part of the paragraph style. The most important subclass of NSTextBlock is NSTextTableBlock, which represents a block of text that appears as a cell in a table. The table itself is a NSTextTable object. All NSTextBlock objects reference this table, which controls their sizing and positioning.

Topics

Creating text blocks

Working with dimensions of content

Getting and setting margins, borders, and padding

Getting and setting alignment

Working with color

Determining size and position of a text block

Drawing colors and decorations

Initializers

See Also

Formatting and attributes