<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSLineBreakMode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSLineBreakMode"
  },
  "title" : "NSLineBreakMode"
}
-->

# NSLineBreakMode

Constants that specify what happens when a line is too long for a container.

```
enum NSLineBreakMode
```

## Topics

### Constants

[`NSLineBreakByWordWrapping`](/documentation/AppKit/NSLineBreakMode/byWordWrapping)

The value that indicates wrapping occurs at word boundaries, unless the word doesn’t fit on a single line.

[`NSLineBreakByCharWrapping`](/documentation/AppKit/NSLineBreakMode/byCharWrapping)

The value that indicates wrapping occurs before the first character that doesn’t fit.

[`NSLineBreakByClipping`](/documentation/AppKit/NSLineBreakMode/byClipping)

The value that indicates lines don’t extend past the edge of the text container.

[`NSLineBreakByTruncatingHead`](/documentation/AppKit/NSLineBreakMode/byTruncatingHead)

The value that indicates that a line displays so that the end fits in the container and an ellipsis glyph indicates the missing text at the beginning of the line.

[`NSLineBreakByTruncatingTail`](/documentation/AppKit/NSLineBreakMode/byTruncatingTail)

The value that indicates a line displays so that the beginning fits in the container and an ellipsis glyph indicates the missing text at the end of the line.

[`NSLineBreakByTruncatingMiddle`](/documentation/AppKit/NSLineBreakMode/byTruncatingMiddle)

The value that indicates that a line displays so that the beginning and end fit in the container and an ellipsis glyph indicates the missing text in the middle.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)