Instance Property

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.

Declaration

iOS, Mac Catalyst, tvOS
@property(getter=isSimpleRectangularTextContainer, readonly, nonatomic) BOOL simpleRectangularTextContainer;
macOS
@property(getter=isSimpleRectangularTextContainer, readonly) BOOL simpleRectangularTextContainer;

Discussion

The value of this property is YES when the text container’s region is a rectangle with no holes or gaps and the edges are parallel to the text view's coordinate system axes. The default value of this property is NO when the exclusionPaths property contains one or more items, when the maximumNumberOfLines property is not zero, or when you override the lineFragmentRectForProposedRect:atIndex:writingDirection:remainingRect: method. Otherwise, the default value is YES.

See Also

Constraining Text Layout

maximumNumberOfLines

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

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.