NSTextBlock
A block of text laid out in a subregion of the text container.
Declaration
class NSTextBlockOverview
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
setValue(_:type:for:)value(for:)valueType(for:)setContentWidth(_:type:)contentWidthcontentWidthValueTypeNSTextBlock.DimensionNSTextBlock.ValueType
Getting and setting margins, borders, and padding
setWidth(_:type:for:edge:)setWidth(_:type:for:)width(for:edge:)widthValueType(for:edge:)NSTextBlock.Layer
Getting and setting alignment
Working with color
Determining size and position of a text block
rectForLayout(at:in:textContainer:characterRange:)boundsRect(forContentRect:in:textContainer:characterRange:)