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

# CellArea

```csharp
public readonly struct CellArea
```

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

A rectangle of cells, from its top-left to its bottom-right cell; rows and columns from 1.

## Constructors

<a id="ctor-int-int-int-int"></a>
### CellArea(int, int, int, int)

```csharp
public CellArea(int FirstRow, int FirstColumn, int LastRow, int LastColumn)
```

A rectangle of cells, from its top-left to its bottom-right cell; rows and columns from 1.

**Parameters**

- `FirstRow`: The top row.
- `FirstColumn`: The left column.
- `LastRow`: The bottom row.
- `LastColumn`: The right column.

## Properties

<a id="firstcolumn"></a>
### FirstColumn

```csharp
public int FirstColumn { get; init; }
```

The left column.

<a id="firstrow"></a>
### FirstRow

```csharp
public int FirstRow { get; init; }
```

The top row.

<a id="lastcolumn"></a>
### LastColumn

```csharp
public int LastColumn { get; init; }
```

The right column.

<a id="lastrow"></a>
### LastRow

```csharp
public int LastRow { get; init; }
```

The bottom row.

## Methods

<a id="contains-int-int"></a>
### Contains(int, int)

```csharp
public bool Contains(int row, int column)
```

Whether the cell is inside the area.
