---
title: "Cells.Add"
url: "https://reference.aspose.com/pdf/net/aspose.pdf/cells/add/"
product: "Aspose.PDF for .NET API Reference"
description: "Cells method. Add cell to collection"
---

## Add() {#add}

Add cell to collection.

```csharp
public Cell Add()
```

### Return Value

The new cell

### See Also

* class [Cell](../../cell/)
* class [Cells](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## Add(string, TextState) {#add_3}

Add cell to collection.

```csharp
public Cell Add(string text, TextState ts)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text for cell. |
| ts | TextState | The text state. |

### Return Value

The new cell

### See Also

* class [Cell](../../cell/)
* class [TextState](../../../aspose.pdf.text/textstate/)
* class [Cells](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## Add(string) {#add_2}

Add cell to collection.

```csharp
public Cell Add(string text)
```

| Parameter | Type | Description |
| --- | --- | --- |
| text | String | The text for cell. |

### Return Value

The new cell

### See Also

* class [Cell](../../cell/)
* class [Cells](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## Add(TextFragment) {#add_1}

Add cell to collection.

```csharp
public Cell Add(TextFragment textFragment)
```

| Parameter | Type | Description |
| --- | --- | --- |
| textFragment | TextFragment | The text fragment for cell. |

### Return Value

The new cell

### See Also

* class [Cell](../../cell/)
* class [TextFragment](../../../aspose.pdf.text/textfragment/)
* class [Cells](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)

---

## Add(Cell) {#add_4}

Add cell to collection.

```csharp
public void Add(Cell cell)
```

| Parameter | Type | Description |
| --- | --- | --- |
| cell | Cell | The cell to collection. |

### See Also

* class [Cell](../../cell/)
* class [Cells](../)
* namespace [Aspose.Pdf](../../../aspose.pdf/)
* assembly [Aspose.PDF](../../../)


