## WorksheetCollection::SwapSheet method


Swaps the two sheets.

```cpp
void Aspose::Cells::WorksheetCollection::SwapSheet(int32_t sheetIndex1, int32_t sheetIndex2)
```


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

## See Also

* Class [Vector](../../vector/)
* Class [WorksheetCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
