Instance Property

lineBreakMode

The behavior of the last line inside the text container.

Declaration

var lineBreakMode: NSLineBreakMode { get set }

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 NSLineBreakMode.byWordWrapping.

See Also

Defining the Container Shape

var size: CGSize

The size of the text container’s bounding rectangle.

var exclusionPaths: [UIBezierPath]

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

var containerSize: NSSize

The size of the receiver’s bounding rectangle.

Deprecated
var widthTracksTextView: Bool

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

var heightTracksTextView: Bool

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