aspose.cells
Class ScenarioCollection

Represents the list of scenarios.

Property Getters/Setters Summary
functiongetActiveIndex()
functionsetActiveIndex(value)
           Gets and sets which scenario is selected.
functiongetCount()
          
functiongetLastSelected()
functionsetLastSelected(value)
           Indicates which scenario was last selected by the user to be run/shown.
functionget(index)
           Gets the Scenario object by the index.
 
Method Summary
functionadd(value)→ inherited from CollectionBase
          Reserved for internal use.
functionadd(name)
           Adds a scenario.
functionclear()→ inherited from CollectionBase
          
functioncontains(value)→ inherited from CollectionBase
          Reserved for internal use.
functionget(index)→ inherited from CollectionBase
          Reserved for internal use.
functionindexOf(value)→ inherited from CollectionBase
          Reserved for internal use.
functioniterator()→ inherited from CollectionBase
          
functionremoveAt(index)→ inherited from CollectionBase
          
 

Property Getters/Setters Detail

getActiveIndex/setActiveIndex : Number 

function getActiveIndex() / function setActiveIndex(value)
Gets and sets which scenario is selected.

getLastSelected/setLastSelected : Number 

function getLastSelected() / function setLastSelected(value)
Indicates which scenario was last selected by the user to be run/shown.

getCount : Number 

function getCount()

get : Scenario 

function get(index)
Gets the Scenario object by the index.
Parameters:
index - The specific index in the list.
Returns:

Method Detail

add

function add(name)
Adds a scenario.
Parameters:
name: String - The name of scenario.
Returns:
The index in the list of scanarios.

clear

function clear()

removeAt

function removeAt(index)

iterator

function iterator()

get

function get(index)
Reserved for internal use.

contains

function contains(value)
Reserved for internal use.

add

function add(value)
Reserved for internal use.

indexOf

function indexOf(value)
Reserved for internal use.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.