com.aspose.cells

Class GradientStopCollection

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

Represents the gradient stop collection.

Property Getters/Setters Summary
intgetCount()
GradientStopget(int index)
void
set(intindex, GradientStop value)
           Gets the gradient stop by the index.
 
Method Summary
voidadd(double position, CellsColor color, int alpha)
Add a gradient stop.
voidadd(double position, com.aspose.cells.Color color, int alpha)
Add a gradient stop.
intadd(java.lang.Object value)
Reserved for internal use.
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

      • getCount

        public int getCount()
        
      • get/set

        public GradientStop get(int index) / public void set(int index, GradientStop value)
        
        Gets the gradient stop by the index.
        Parameters:
        index - The index.
        Returns:
        The gradient stop.

    set

    public voidset(intindex, GradientStop value)
    
    Gets the gradient stop by the index.
    Parameters:
    index - The index.
    Returns:
    The gradient stop.
    • Method Detail

      • add

        public void add(double position, CellsColor color, int alpha)
        Add a gradient stop.
        Parameters:
        position - The position of the stop,in unit of percentage.
        color - The color of the stop.
        alpha - The alpha of the color.
      • add

        public void add(double position, com.aspose.cells.Color color, int alpha)
        Add a gradient stop.
        Parameters:
        position - The position of the stop,in unit of percentage.
        color - The color of the stop.
        alpha - The alpha of the color.
      • 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.