---
title: "WorksheetCollection.RemoveAt"
url: "https://reference.aspose.com/cells/net/aspose.cells.griddesktop/worksheetcollection/removeat/"
product: "Aspose.Cells for .NET API Reference"
description: "WorksheetCollection method. Removes the sheet by the index"
---

## RemoveAt(int) {#removeat}

Removes the sheet by the index.

```csharp
public void RemoveAt(int index)
```

| Parameter | Type | Description |
| --- | --- | --- |
| index | Int32 | The index value of the sheet to remove. |

### See Also

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

---

## RemoveAt(string) {#removeat_2}

Removes the sheet by the name.

```csharp
public void RemoveAt(string name)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The name of the worksheet to remove. |

### See Also

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


