Instance Property

size

The size of the text container’s bounding rectangle.

Declaration

iOS, Mac Catalyst, tvOS
@property(nonatomic) CGSize size;
macOS
@property NSSize size;

Discussion

This property defines the maximum size for the layout area returned from lineFragmentRectForProposedRect:atIndex:writingDirection:remainingRect:. A value of 0.0 or less means no limitation.

The default value of this property is CGSizeZero.

See Also

Defining the Container Shape

exclusionPaths

An array of path objects representing the regions where text is not displayed in the text container.

lineBreakMode

The behavior of the last line inside the text container.

widthTracksTextView

A Boolean that controls whether the receiver adjusts the width of its bounding rectangle when its text view is resized.

heightTracksTextView

A Boolean that controls whether the receiver adjusts the height of its bounding rectangle when its text view is resized.