## GridWorksheetCollection.SwapSheet method

Swaps the two sheets.

```csharp
public void SwapSheet(int sheetIndex1, int sheetIndex2)
```

| Parameter | Type | Description |
| --- | --- | --- |
| sheetIndex1 | Int32 | The first worksheet. |
| sheetIndex2 | Int32 | The second worksheet. |

### See Also

* class [GridWorksheetCollection](../)
* namespace [Aspose.Cells.GridWeb.Data](../../../aspose.cells.gridweb.data/)
* assembly [Aspose.Cells.GridWeb](../../../)


