## ScenarioCollection::Add(const U16String\&) method


Adds a scenario.

```cpp
int32_t Aspose::Cells::ScenarioCollection::Add(const U16String &name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The name of scenario. |

## ReturnValue

The index in the list of scenarios.

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [ScenarioCollection](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## ScenarioCollection::Add(const char16_t*) method


Adds a scenario.

```cpp
int32_t Aspose::Cells::ScenarioCollection::Add(const char16_t *name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The name of scenario. |

## ReturnValue

The index in the list of scenarios.

## See Also

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