---
title: isOpaque
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbuttoncell/isopaque
---

# isOpaque

A Boolean value that indicates if the button is opaque.

## Declaration

```swift
var isOpaque: Bool { get }
```

## Discussion

Discussion When the value of this property is true, the button draws over every pixel in its frame. Note that a button cell is opaque only if it isn’t transparent and if it has a border. The default value of this property is true.

## See Also

### Managing Graphics Attributes

- [backgroundColor](appkit/nsbuttoncell/backgroundcolor.md)
- [bezelStyle](appkit/nsbuttoncell/bezelstyle.md)
- [gradientType](appkit/nsbuttoncell/gradienttype.md)
- [imageDimsWhenDisabled](appkit/nsbuttoncell/imagedimswhendisabled.md)
- [isTransparent](appkit/nsbuttoncell/istransparent.md)
- [showsBorderOnlyWhileMouseInside](appkit/nsbuttoncell/showsborderonlywhilemouseinside.md)
