Instance Property

contentWidth

The width of the text block.

Declaration

var contentWidth: CGFloat { get }

Discussion

This property interpreted according to the value type returned by contentWidthValueType.

See Also

Working with dimensions of content

func value(for: NSTextBlock.Dimension)

Returns the value of the specified text block dimension.

func valueType(for: NSTextBlock.Dimension)

Returns the value type of the specified text block dimension.

var contentWidthValueType: NSTextBlock.ValueType

The type of value stored for the text block width.