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

# cancelButtonBounds

The rectangle for the cancel button within the bounds of the search field.

```
var cancelButtonBounds: NSRect { get }
```

## Discussion

Subclasses can override `cancelButtonBounds` for custom layout purposes.

---

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)