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

# CellPosition

```csharp
public readonly struct CellPosition
```

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

A cell of the sheet by 1-based row and column, such as the active cell.

## Constructors

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

```csharp
public CellPosition(int row, int column)
```

A position inside the sheet.

**Exceptions**

- `ArgumentOutOfRangeException`: The row or column is outside the sheet.

## Properties

<a id="column"></a>
### Column

```csharp
public int Column { get; }
```

The column, from 1.

<a id="row"></a>
### Row

```csharp
public int Row { get; }
```

The row, from 1.

## Methods

<a id="tostring"></a>
### ToString()

```csharp
public override string ToString()
```

The A1 address, such as `B3`.
