Instance Property

lineBreakMode

The behavior of the last line inside the text container.

Declaration

iOS, Mac Catalyst, tvOS
@property(nonatomic) NSLineBreakMode lineBreakMode;
macOS
@property NSLineBreakMode lineBreakMode;

Discussion

The NSLineBreakMode constants specify what happens when a line is too long for its container. For example, wrapping can occur on word boundaries (the default) or character boundaries, or the line can be clipped or truncated. The default value of this property is NSLineBreakByWordWrapping.

See Also

Defining the Container Shape

size

The size of the text container’s bounding rectangle.

exclusionPaths

An array of path objects representing the regions where text is not displayed in 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.