com.aspose.cells

Class ScenarioCollection

  • All Implemented Interfaces:
    java.lang.Iterable
    public class ScenarioCollection 
    extends CollectionBase

Represents the list of scenarios.

Property Getters/Setters Summary
intgetActiveIndex()
void
setActiveIndex(intvalue)
           Gets and sets which scenario is selected.
intgetCount()
intgetLastSelected()
void
setLastSelected(intvalue)
           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)
Reserved for internal use.
intadd(java.lang.String name)
Adds a scenario.
voidclear()
booleancontains(java.lang.Object value)
Reserved for internal use.
intindexOf(java.lang.Object value)
Reserved for internal use.
java.util.Iteratoriterator()
voidremoveAt(int index)
 

    • 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

        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:

    setActiveIndex

    public voidsetActiveIndex(intvalue)
    
    Gets and sets which scenario is selected.

    setLastSelected

    public voidsetLastSelected(intvalue)
    
    Indicates which scenario was last selected by the user to be run/shown.
    • 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

        public void clear()
      • removeAt

        public void removeAt(int index)
      • iterator

        public java.util.Iterator iterator()
      • contains

        public boolean contains(java.lang.Object value)
        Reserved for internal use.
      • add

        public int add(java.lang.Object value)
        Reserved for internal use.
      • indexOf

        public int indexOf(java.lang.Object value)
        Reserved for internal use.