Aspose::Cells::ScenarioCollection class

ScenarioCollection class

Represents the list of scenarios.

class ScenarioCollection

Methods

MethodDescription
Add(const U16String& name)Adds a scenario.
Add(const char16_t* name)Adds a scenario.
begin()Returns an iterator to the beginning of the ScenarioCollection.
end()Returns an iterator to the end of the ScenarioCollection.
Get(int32_t index)Gets the Scenario object by the index.
GetActiveIndex()Gets and sets which scenario is selected.
GetCount()Gets the number of elements contained in the instance.
GetLastSelected()Indicates which scenario was last selected by the user to be run/shown.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const ScenarioCollection& src)operator=
ScenarioCollection(ScenarioCollection_Impl* impl)Constructs from an implementation object.
ScenarioCollection(const ScenarioCollection& src)Copy constructor.
SetActiveIndex(int32_t value)Gets and sets which scenario is selected.
SetLastSelected(int32_t value)Indicates which scenario was last selected by the user to be run/shown.
~ScenarioCollection()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also