---
title: truncatesLastVisibleLine
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscell/truncateslastvisibleline
---

# truncatesLastVisibleLine

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

## Declaration

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

## Discussion

Discussion When the value of this property is 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 property must be NSLineBreakMode.byWordWrapping or NSLineBreakMode.byCharWrapping for this option to have any effect.

## See Also

### Modifying Textual Attributes

- [isEditable](appkit/nscell/iseditable.md)
- [isSelectable](appkit/nscell/isselectable.md)
- [isScrollable](appkit/nscell/isscrollable.md)
- [alignment](appkit/nscell/alignment.md)
- [font](appkit/nscell/font.md)
- [lineBreakMode](appkit/nscell/linebreakmode.md)
- [wraps](appkit/nscell/wraps.md)
- [baseWritingDirection](appkit/nscell/basewritingdirection.md)
- [attributedStringValue](appkit/nscell/attributedstringvalue.md)
- [allowsEditingTextAttributes](appkit/nscell/allowseditingtextattributes.md)
- [importsGraphics](appkit/nscell/importsgraphics.md)
- [setUpFieldEditorAttributes(_:)](appkit/nscell/setupfieldeditorattributes(_:).md)
- [title](appkit/nscell/title.md)
