
## ScenarioCollection class

Represents the list of scenarios.

## Methods

| Name | Description |
| --- | --- |
| [add(name)](#add) | Adds a scenario. |
| [add()](#add-1) | Reserved for internal use. |
| [clear()](#clear) |  |
| [contains()](#contains) | Reserved for internal use. |
| [get(index)](#get) | Gets the Scenario object by the index. |
| [get()](#get-1) | Reserved for internal use. |
| [getActiveIndex()](#getactiveindex) | Gets and sets which scenario is selected. |
| [getCount()](#getcount) |  |
| [getLastSelected()](#getlastselected) | Indicates which scenario was last selected by the user to be run/shown. |
| [indexOf()](#indexof) | Reserved for internal use. |
| [iterator()](#iterator) |  |
| [removeAt()](#removeat) |  |
| [setActiveIndex()](#setactiveindex) | Gets and sets which scenario is selected. |
| [setLastSelected()](#setlastselected) | Indicates which scenario was last selected by the user to be run/shown. |

### add(name) {#add}

Adds a scenario.

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

**Returns:** Number — `Number` The index in the list of scenarios.

### add() {#add-1}

Reserved for internal use.

### clear() {#clear}

### contains() {#contains}

Reserved for internal use.

### get(index) {#get}

Gets the Scenario object by the index.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The specific index in the list. |

**Returns:** Scenario — `Scenario`

### get() {#get-1}

Reserved for internal use.

### getActiveIndex() {#getactiveindex}

Gets and sets which scenario is selected.

### getCount() {#getcount}

### getLastSelected() {#getlastselected}

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

### indexOf() {#indexof}

Reserved for internal use.

### iterator() {#iterator}

### removeAt() {#removeat}

### setActiveIndex() {#setactiveindex}

Gets and sets which scenario is selected.

### setLastSelected() {#setlastselected}

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