
## ScenarioCollection class

Represents the list of scenarios.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [ActiveIndex](#activeindex) | int | Gets and sets which scenario is selected. |
| [LastSelected](#lastselected) | int | Indicates which scenario was last selected by the user to be run/shown. |
| [Count](#count) | int |  |
| [Item (int)](#itemint) | Scenario | Gets the Scenario object by the index. |

## Methods

| Name | Description |
| --- | --- |
| [add](#add) | Adds a scenario. |
| [clear](#clear) |  |
| [removeAt](#removeat) |  |
| [iterator](#iterator) |  |
| [get](#get) | Reserved for internal use. |
| [contains](#contains) | Reserved for internal use. |
| [indexOf](#indexof) | Reserved for internal use. |

### ScenarioCollection.ActiveIndex property {#activeindex}

Gets and sets which scenario is selected.

**Type:** int

### ScenarioCollection.LastSelected property {#lastselected}

Indicates which scenario was last selected by the user to be run/shown.

**Type:** int

### ScenarioCollection.Count property {#count}

**Type:** int

### ScenarioCollection.Item (int) property {#itemint}

Gets the Scenario object by the index.

**Type:** Scenario

### add(name) (1 of 2) {#add}

Adds a scenario.

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | The name of scenario. |

**Returns:** The index in the list of scenarios.

---

### add(value) (2 of 2) {#add-1}

Reserved for internal use.

### clear() {#clear}

### removeAt(index) {#removeat}

### iterator() {#iterator}

### get(index) {#get}

Reserved for internal use.

### contains(value) {#contains}

Reserved for internal use.

### indexOf(value) {#indexof}

Reserved for internal use.
