Class

NSTextTable

An NSTextTable object represents a text table as a whole. It is responsible for laying out and drawing the text table blocks it contains, and it maintains the basic parameters of the table.

Symbols

Getting and setting number of columns

var numberOfColumns: Int

The number of columns in the text table.

Getting and setting layout algorithm

var layoutAlgorithm: NSTextTableLayoutAlgorithm

The text table layout algorithm.

Collapsing borders

var collapsesBorders: Bool

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

Hiding empty cells

var hidesEmptyCells: Bool

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

Determining layout rectangles

func rect(for: NSTextTableBlock, layoutAt: NSPoint, in: NSRect, textContainer: NSTextContainer, characterRange: NSRange)

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

func boundsRect(for: NSTextTableBlock, contentRect: NSRect, in: NSRect, textContainer: NSTextContainer, characterRange: NSRange)

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

Constants

NSTextTableLayoutAlgorithm

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

Relationships

Inherits From