Aspose::Cells::IScenarioCollection Class Referenceabstract

Represents the list of scenarios. More...

Inherits CollectionBase.

Public Member Functions

virtual Aspose::Cells::Systems::Int32 GetActiveIndex ()=0
 Gets which scenario is selected. More...
 
virtual void SetActiveIndex (Aspose::Cells::Systems::Int32 value)=0
 Sets which scenario is selected. More...
 
virtual Aspose::Cells::Systems::Int32 GetLastSelected ()=0
 Indicates which scenario was last selected by the user to be run/shown. More...
 
virtual void SetLastSelected (Aspose::Cells::Systems::Int32 value)=0
 Indicates which scenario was last selected by the user to be run/shown. More...
 
virtual intrusive_ptr< Aspose::Cells::IScenarioGetObjectByIndex (Aspose::Cells::Systems::Int32 index)=0
 Gets the IScenario object by the index. More...
 
virtual Aspose::Cells::Systems::Int32 Add (intrusive_ptr< Aspose::Cells::Systems::String > name)=0
 Adds a scenario. More...
 

Detailed Description

Represents the list of scenarios.

Member Function Documentation

◆ Add()

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::IScenarioCollection::Add ( intrusive_ptr< Aspose::Cells::Systems::String >  name)
pure virtual

Adds a scenario.

Parameters
nameThe name of scenario.
Returns
The index in the list of scenarios.

◆ GetActiveIndex()

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::IScenarioCollection::GetActiveIndex ( )
pure virtual

Gets which scenario is selected.

◆ GetLastSelected()

virtual Aspose::Cells::Systems::Int32 Aspose::Cells::IScenarioCollection::GetLastSelected ( )
pure virtual

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

◆ GetObjectByIndex()

virtual intrusive_ptr<Aspose::Cells::IScenario> Aspose::Cells::IScenarioCollection::GetObjectByIndex ( Aspose::Cells::Systems::Int32  index)
pure virtual

Gets the IScenario object by the index.

Parameters
indexThe specific index in the list.
Returns

◆ SetActiveIndex()

virtual void Aspose::Cells::IScenarioCollection::SetActiveIndex ( Aspose::Cells::Systems::Int32  value)
pure virtual

Sets which scenario is selected.

◆ SetLastSelected()

virtual void Aspose::Cells::IScenarioCollection::SetLastSelected ( Aspose::Cells::Systems::Int32  value)
pure virtual

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