Instance Property

maximumNumberOfLines

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

Declaration

iOS, Mac Catalyst, tvOS
@property(nonatomic) NSUInteger maximumNumberOfLines;
macOS
@property NSUInteger maximumNumberOfLines;

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

lineFragmentPadding

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

- lineFragmentRectForProposedRect:atIndex:writingDirection:remainingRect:

Returns the bounds of a line fragment rectangle inside the receiver for the proposed rectangle.

simpleRectangularTextContainer

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.