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(intindex)
Gets the Scenario object by the index.
 
Method Summary
intadd(java.lang.Objectvalue)
Reserved for internal use.
intadd(java.lang.Stringname)
Adds a scenario.
voidclear()
booleancontains(java.lang.Objectvalue)
Reserved for internal use.
java.lang.Objectget(intindex)
Reserved for internal use.
intindexOf(java.lang.Objectvalue)
Reserved for internal use.
java.util.Iteratoriterator()
voidremoveAt(intindex)
 

    • 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:
    • 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()
      • get

        public java.lang.Object get(int index)
        Reserved for internal use.
      • 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.