<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTableHeaderView/headerRect(ofColumn:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTableHeaderView(im)headerRectOfColumn:"
  },
  "title" : "headerRect(ofColumn:)"
}
-->

# headerRect(ofColumn:)

Returns the rectangle containing the header tile for the column at `columnIndex`.

```
func headerRect(ofColumn column: Int) -> NSRect
```

## Discussion

Raises an `NSInternalInconsistencyException` if `columnIndex` is out of bounds.

## See Also

[`-  rectOfColumn:`](/documentation/AppKit/NSTableView/rect(ofColumn:))

Returns the rectangle containing the column at the specified index.



---

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)