<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCell/truncatesLastVisibleLine",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCell(py)truncatesLastVisibleLine"
  },
  "title" : "truncatesLastVisibleLine"
}
-->

# truncatesLastVisibleLine

A Boolean value indicating whether the cell truncates text that does not fit within the cell’s bounds.

```
var truncatesLastVisibleLine: Bool { get set }
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the cell truncates text and adds an ellipsis character to the last visible line when the text does not fit. The value in the [`lineBreakMode`](/documentation/AppKit/NSCell/lineBreakMode) property must be [`NSLineBreakMode.byWordWrapping`](/documentation/AppKit/NSLineBreakMode/byWordWrapping) or [`NSLineBreakMode.byCharWrapping`](/documentation/AppKit/NSLineBreakMode/byCharWrapping) for this option to have any effect.

---

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)