## Scenario class


Represents an individual scenario.

```cpp
class Scenario
```

## Methods

| Method | Description |
| --- | --- |
| [GetComment()](./getcomment/) | Gets and sets the comment of scenario. |
| [GetInputCells()](./getinputcells/) | Gets the input cells of scenario. |
| [GetName()](./getname/) | Gets and sets the name of scenario. |
| [GetUser()](./getuser/) | Gets name of user who last changed the scenario. |
| [IsHidden()](./ishidden/) | Indicates whether scenario is hidden. |
| [IsLocked()](./islocked/) | Indicates whether scenario is locked for editing when the sheet is protected. |
| [IsNull()](./isnull/) const | Checks whether the implementation object is nullptr. |
| explicit [operator bool()](./operator_bool/) const | operator bool() |
| [operator=(const Scenario\& src)](./operator_asm/) | operator= |
| [Scenario(Scenario_Impl* impl)](./scenario/) | Constructs from an implementation object. |
| [Scenario(const Scenario\& src)](./scenario/) | Copy constructor. |
| [SetComment(const U16String\& value)](./setcomment/) | Gets and sets the comment of scenario. |
| [SetComment(const char16_t* value)](./setcomment/) | Gets and sets the comment of scenario. |
| [SetIsHidden(bool value)](./setishidden/) | Indicates whether scenario is hidden. |
| [SetIsLocked(bool value)](./setislocked/) | Indicates whether scenario is locked for editing when the sheet is protected. |
| [SetName(const U16String\& value)](./setname/) | Gets and sets the name of scenario. |
| [SetName(const char16_t* value)](./setname/) | Gets and sets the name of scenario. |
| [~Scenario()](./~scenario/) | Destructor. |
## Fields

| Field | Description |
| --- | --- |
| [_impl](./_impl/) | The implementation object. |
## See Also

* Namespace [Aspose::Cells](../)
* Library [Aspose.Cells for C++](../../)
