---
title: isHighlighted
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nscell/ishighlighted
---

# isHighlighted

A Boolean value indicating whether the cell has a highlighted appearance.

## Declaration

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

## Discussion

Discussion When the value of this property is true, the cell draws itself with a highlighted appearance. The default value of this property is false. Assigning a new value to this property has no effect by default. Subclasses can override the property to provide a highlighting behavior. For example, the NSButtonCell class overrides this property, so that when the value is true the button draws the button with a highlight appearance specified by NSCell.Attribute.cellLightsByBackground, NSCell.Attribute.cellLightsByContents, or NSCell.Attribute.cellLightsByGray.

## See Also

### Drawing and Highlighting

- [draw(withFrame:in:)](appkit/nscell/draw(withframe:in:).md)
- [highlightColor(withFrame:in:)](appkit/nscell/highlightcolor(withframe:in:).md)
- [drawInterior(withFrame:in:)](appkit/nscell/drawinterior(withframe:in:).md)
- [controlView](appkit/nscell/controlview.md)
- [highlight(_:withFrame:in:)](appkit/nscell/highlight(_:withframe:in:).md)
