Class

NSTextTable

An object that represents a text table as a whole.

Declaration

@interface NSTextTable : NSTextBlock

Overview

A text table is responsible for laying out and drawing the text table blocks it contains, and it maintains the basic parameters of the table.

Topics

Getting and setting number of columns

numberOfColumns

The number of columns in the text table.

Getting and setting layout algorithm

layoutAlgorithm

The text table layout algorithm.

Collapsing borders

collapsesBorders

A Boolean value indicating whether the text table borders are collapsible.

Hiding empty cells

hidesEmptyCells

A Boolean value indicating whether the text table hides empty cells.

Determining layout rectangles

- rectForBlock:layoutAtPoint:inRect:textContainer:characterRange:

Returns the rectangle within which glyphs should be laid out for a text table block.

- boundsRectForBlock:contentRect:inRect:textContainer:characterRange:

Returns the rectangle the text table block actually occupies, including padding, borders, and margins.

Drawing the table

- drawBackgroundForBlock:withFrame:inView:characterRange:layoutManager:

Draws any colors and other decorations for a text table block.

Constants

NSTextTableLayoutAlgorithm

These constants, specifying the type of text table layout algorithm, are used with layoutAlgorithm.

Relationships

Inherits From

See Also

Formatted Content

NSParagraphStyle

The paragraph or ruler attributes used by an attributed string.

NSMutableParagraphStyle

An object that enables changing the values of the subattributes in a paragraph style attribute.

NSTextTableBlock

A text block that appears as a cell in a text table.

NSTextTab

A tab in an NSParagraphStyle object, storing an alignment type and location.

NSTextList

A section of text that forms a single list.