---
title: "drawBezel(withFrame:in:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsbuttoncell/drawbezel(withframe:in:)"
---

# drawBezel(withFrame:in:)

Draws the border of the button using the current bezel style.

## Declaration

```swift
func drawBezel(withFrame frame: NSRect, in controlView: NSView)
```

## Parameters

- `frame`: The bounding rectangle of the button.
- `controlView`: The control being drawn.

## Discussion

Discussion This method is called automatically when the button is redrawn; you should not call it directly.

## See Also

### Related Documentation

- [bezelStyle](appkit/nsbuttoncell/bezelstyle.md)

### Drawing the Button Content

- [drawImage(_:withFrame:in:)](appkit/nsbuttoncell/drawimage(_:withframe:in:).md)
- [drawTitle(_:withFrame:in:)](appkit/nsbuttoncell/drawtitle(_:withframe:in:).md)
