Instance Property

maximumNumberOfLines

The maximum number of lines that can be stored in the text container.

Declaration

var maximumNumberOfLines: Int { get set }

Discussion

The layout manager uses the value of this property to determine the maximum number of lines associated with the text container. The default value of this property is 0, which indicates that there is no limit.

See Also

Constraining Text Layout

var lineFragmentPadding: CGFloat

The amount by which text is inset within line fragment rectangles.

var isSimpleRectangularTextContainer: Bool

A Boolean that indicates whether the receiver’s region is a rectangle with no holes or gaps and whose edges are parallel to the text view's coordinate system axes.