---
title: "CellControlCollection.AddCheckBox"
url: "https://reference.aspose.com/cells/net/aspose.cells.griddesktop/cellcontrolcollection/addcheckbox/"
product: "Aspose.Cells for .NET API Reference"
description: "CellControlCollection method. Adds a checkbox to a specified cell at row column index"
---

## AddCheckBox(int, int, bool) {#addcheckbox}

Adds a checkbox to a specified cell at row column index.

```csharp
public CheckBox AddCheckBox(int row, int col, bool check)
```

| Parameter | Type | Description |
| --- | --- | --- |
| row | Int32 | Row index of cell. |
| col | Int32 | Column index of cell. |
| check | Boolean | Checkbox checked property state. |

### Return Value

The added checkbox.

### See Also

* class [CheckBox](../../checkbox/)
* class [CellControlCollection](../)
* namespace [Aspose.Cells.GridDesktop](../../../aspose.cells.griddesktop/)
* assembly [Aspose.Cells.GridDesktop](../../../)

---

## AddCheckBox(string, bool) {#addcheckbox_1}

Adds a checkbox to a specified cell by cell name.

```csharp
public CheckBox AddCheckBox(string cellName, bool check)
```

| Parameter | Type | Description |
| --- | --- | --- |
| cellName | String | Name of grid cell. |
| check | Boolean | Checkbox checked property state. |

### Return Value

The added checkbox.

### See Also

* class [CheckBox](../../checkbox/)
* class [CellControlCollection](../)
* namespace [Aspose.Cells.GridDesktop](../../../aspose.cells.griddesktop/)
* assembly [Aspose.Cells.GridDesktop](../../../)


