Instance Property


The width of the text block.


var contentWidth: CGFloat { get }


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

See Also

Working with dimensions of content

func value(for: NSTextBlock.Dimension) -> CGFloat

Returns the value of the specified text block dimension.

func valueType(for: NSTextBlock.Dimension) -> NSTextBlock.ValueType

Returns the value type of the specified text block dimension.

var contentWidthValueType: NSTextBlock.ValueType

The type of value stored for the text block width.