<!-- Generated by tools/SharpCell.Grid.Docs from the XML documentation comments. Do not edit; run the tool with 'generate'. -->

# GridHit

```csharp
public readonly struct GridHit
```

Namespace `SharpCell.Grid` · package `SharpCell.Grid`

What is under a point of the grid.

## Constructors

<a id="ctor-gridpart-cellposition"></a>
### GridHit(GridPart, CellPosition)

```csharp
public GridHit(GridPart Part, CellPosition Cell)
```

What is under a point of the grid.

**Parameters**

- `Part`: The part of the grid.
- `Cell`: The cell under the point, the top-left cell of a merged area; on a header, the cell a click makes active: the top row on screen in that column, the leftmost column on screen in that row.

## Properties

<a id="cell"></a>
### Cell

```csharp
public CellPosition Cell { get; init; }
```

The cell under the point, the top-left cell of a merged area; on a header, the cell a click makes active: the top row on screen in that column, the leftmost column on screen in that row.

<a id="part"></a>
### Part

```csharp
public GridPart Part { get; init; }
```

The part of the grid.
