# CellCoordinates Class

> CellCoordinates class in the TX Sheet Control .NET API: Zero-based worksheet coordinates, independent of the active sheet.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Implements:** `System.IEquatable<TXTextControl.TXSheetControl.Server.CellCoordinates>`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > CellCoordinates Class
- **984 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/llms-full.txt

---

Zero-based worksheet coordinates, independent of the active sheet.

### Syntax

```csharp
public class CellCoordinates
```

Interfaces: `IEquatable<CellCoordinates>`.

### Members

#### Constructors

| Constructor | Description |
|---|---|
| [Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/constructor/llms-full.txt) |  |

#### Properties

| Property | Description |
|---|---|
| [Column](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/column-property/llms-full.txt) |  |
| [Row](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/row-property/llms-full.txt) |  |

### Examples

Apply CellCoordinates to a small working document, then return the exported bytes. The caller can save or download the result.

```csharp
using TXTextControl.TXSheetControl.Server;

async Task<byte[]> CreateCellCoordinatesReportAsync(ServerSheetControl control)
{
    var book = control.Workbook;
    var sheet = await book.Sheets.AtAsync(0);
    await sheet.Cell("B8").SetValueAsync(120);
    await sheet.Cell("B9").SetValueAsync(80);
    await sheet.Cell("B10").SetFormulaAsync("=SUM(B8:B9)");
    await sheet.Cell("A1").SetTextAsync("October invoice");
    await sheet.Cell("A1").FormatAsync(new { fontFamily = "Liberation Sans", fontSize = 16, bold = true, textColor = "#ffffff", fillColor = "#163b63" });
    await sheet.Range("B8:B10").FormatAsync(new { numberFormatCode = "#,##0.00", fontFamily = "Liberation Sans", fontSize = 11 });

    var settings = new CellCoordinates(7, 1);
    await sheet.Cell(settings).SetTextAsync("Consulting");
    return await control.SaveAsync(StreamType.PDF);
}
```

### See Also

- [TXTextControl.TXSheetControl.Server Namespace](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## In This Section

- [CellCoordinates.Column Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/column-property/llms-full.txt): CellCoordinates.Column property in the TX Sheet Control .NET API, with its syntax, its type int, a C# example and remarks on awaiting tasks and handles.
- [CellCoordinates Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/constructor/llms-full.txt): CellCoordinates constructor in the TX Sheet Control .NET API, with its syntax, the parameters Row and Column and a C# example.
- [CellCoordinates.Row Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/row-property/llms-full.txt): CellCoordinates.Row property in the TX Sheet Control .NET API, with its syntax, its type int, a C# example and remarks on awaiting tasks and handles.

---

## Nearby

- **Previous:** [Cell.SetBarcodeAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cell/setbarcodeasync-method/llms-full.txt)
- **Next:** [CellCoordinates Constructor](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/cellcoordinates/constructor/llms-full.txt)
