---
title: "WorksheetCollection.Item"
url: "https://reference.aspose.com/cells/net/aspose.cells.griddesktop/worksheetcollection/item/"
product: "Aspose.Cells for .NET API Reference"
description: "WorksheetCollection property. Gets the Worksheet element at the specified index"
---

## WorksheetCollection indexer (1 of 2)

Gets the [`Worksheet`](../../worksheet/) element at the specified index.

```csharp
public Worksheet this[int index] { get; }
```

| Parameter | Description |
| --- | --- |
| index | The zero based index of the element. |

### Return Value

The element at the specified index.

### See Also

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

---

## WorksheetCollection indexer (2 of 2)

Gets the [`Worksheet`](../../worksheet/) element with the specified name.

```csharp
public Worksheet this[string sheetName] { get; }
```

| Parameter | Description |
| --- | --- |
| sheetName | The name of the worksheet. |

### Return Value

The Worksheet with the name.

### See Also

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


