asposediagram.api

Class GradientStopCollection

Represents the gradient stop collection.

Property Getters/Setters Summary
methodgetCount()
methodget(index)
method
set(index, value)
           Gets the gradient stop by the index.
 
Method Summary
methodadd(position, color)
Add a gradient stop.
methodclear()
methoditerator()
Reserved for internal use.
methodremoveAt(index)
 

    • Property Getters/Setters Detail

      • getCount : int 

        int getCount()
        
      • 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.
      • clear

         clear()
      • removeAt

         removeAt(index)
      • iterator

        Iterator iterator()
        Reserved for internal use.