com.aspose.cells
Class ScenarioCollection

java.lang.Object
  extended by CollectionBase
      extended by com.aspose.cells.ScenarioCollection
All Implemented Interfaces:
java.lang.Iterable

public class ScenarioCollection 
extends CollectionBase

Represents the list of scenarios.

Property Getters/Setters Summary
intgetActiveIndex()
voidsetActiveIndex(int value)
           Gets and sets which scenario is selected.
intgetCount()→ inherited from CollectionBase
          
intgetLastSelected()
voidsetLastSelected(int value)
           Indicates which scenario was last selected by the user to be run/shown.
Scenarioget(int index)
           Gets the Scenario object by the index.
 
Method Summary
intadd(java.lang.Object value)→ inherited from CollectionBase
          Reserved for internal use.
intadd(java.lang.String name)
           Adds a scenario.
voidclear()→ inherited from CollectionBase
          
booleancontains(java.lang.Object value)→ inherited from CollectionBase
          Reserved for internal use.
java.lang.Objectget(int index)→ inherited from CollectionBase
          Reserved for internal use.
intindexOf(java.lang.Object value)→ inherited from CollectionBase
          Reserved for internal use.
java.util.Iteratoriterator()→ inherited from CollectionBase
          
voidremoveAt(int index)→ inherited from CollectionBase
          
 

Property Getters/Setters Detail

getActiveIndex/setActiveIndex

public int getActiveIndex() / public void setActiveIndex(int value)
Gets and sets which scenario is selected.

getLastSelected/setLastSelected

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

getCount

→ inherited from CollectionBase
public int getCount()

get

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

Method Detail

add

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

clear

→ inherited from CollectionBase
public void clear()

removeAt

→ inherited from CollectionBase
public void removeAt(int index)

iterator

→ inherited from CollectionBase
public java.util.Iterator iterator()

get

→ inherited from CollectionBase
public java.lang.Object get(int index)
Reserved for internal use.

contains

→ inherited from CollectionBase
public boolean contains(java.lang.Object value)
Reserved for internal use.

add

→ inherited from CollectionBase
public int add(java.lang.Object value)
Reserved for internal use.

indexOf

→ inherited from CollectionBase
public int indexOf(java.lang.Object 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.