---
title: NSGridCell
framework: appkit
role: symbol
role_heading: Class
path: appkit/nsgridcell
---

# NSGridCell

An individual content area within a grid view, typically at the intersection of a row and a column.

## Declaration

```swift
@MainActor class NSGridCell
```

## Overview

Overview Use a grid cell to specify the content view to display and to position the content view within the cell’s area.

## Topics

### Getting the Cell Containers

- [column](appkit/nsgridcell/column.md)
- [row](appkit/nsgridcell/row.md)
- [contentView](appkit/nsgridcell/contentview.md)
- [emptyContentView](appkit/nsgridcell/emptycontentview.md)

### Formatting the Cell

- [customPlacementConstraints](appkit/nsgridcell/customplacementconstraints.md)
- [rowAlignment](appkit/nsgridcell/rowalignment.md)
- [xPlacement](appkit/nsgridcell/xplacement.md)
- [yPlacement](appkit/nsgridcell/yplacement.md)
- [NSGridCell.Placement](appkit/nsgridcell/placement.md)

### Initializers

- [init(coder:)](appkit/nsgridcell/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
