Instance Property

maximumLineHeight

The receiver’s maximum line height.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(readonly, nonatomic) CGFloat maximumLineHeight;
macOS
@property(readonly) CGFloat maximumLineHeight;

Discussion

This property contains the maximum height in points that any line in the receiver will occupy, regardless of the font size or size of any attached graphic. This value is always nonnegative. The default value is 0.

Glyphs and graphics exceeding this height will overlap neighboring lines; however, a maximum height of 0 implies no line height limit. Although this limit applies to the line itself, line spacing adds extra space between adjacent lines.

See Also

Accessing Style Information

alignment

The text alignment of the receiver.

firstLineHeadIndent

The indentation of the first line of the receiver.

headIndent

The indentation of the receiver’s lines other than the first.

tailIndent

The trailing indentation of the receiver.

lineHeightMultiple

The line height multiple.

minimumLineHeight

The receiver’s minimum height.

lineSpacing

The distance in points between the bottom of one line fragment and the top of the next.

paragraphSpacing

The space after the end of the paragraph.

paragraphSpacingBefore

The distance between the paragraph’s top and the beginning of its text content.