asposediagram.api

Class GradientStopCollection

Represents the gradient stop collection.

Property Getters/Setters Summary
methodgetCount()
Gets the number of elements actually contained in the collection.
methodget(index)
method
set(index, value)
           Gets the gradient stop by the index.
 
Method Summary
methodadd(position, color)
Add a gradient stop.
methodclear()
Removes all elements from collection.
methodisExist(index)
Is exist item in the collection.
methoditerator()
Supports a simple iteration over a nongeneric collection.
 

    • Property Getters/Setters Detail

      • getCount : int 

        int getCount()
        
        Gets the number of elements actually contained in the collection.
      • get/set : GradientStop 

        GradientStop get(index) / set(index, value)
        
        Gets the gradient stop by the index.
        Parameters:
        index - The index.
        Returns:
        The gradient stop.
    • Method Detail

      • add

         add(position, color)
        Add a gradient stop.
        Parameters:
        position: DoubleValue - The position of the stop,in unit of percentage.
        color: ColorValue - The color of the stop.
        alpha - The alpha of the color.
      • iterator

        Iterator iterator()
        Supports a simple iteration over a nongeneric collection.
        Returns:
      • isExist

        boolean isExist(index)
        Is exist item in the collection.
        Parameters:
        index: int - index of element.
        Returns:
      • clear

         clear()
        Removes all elements from collection.