aspose.diagram
Class GradientStopCollection

Represents the gradient stop collection.

Property Getters/Setters Summary
functiongetCount()
           Gets the number of elements actually contained in the collection.
functionget(index)
functionset(index, value)
           Gets the gradient stop by the index.
 
Method Summary
functionadd(position, color)
           Add a gradient stop.
functionclear()→ inherited from Collection
           Removes all elements from collection.
functionisExist(index)→ inherited from Collection
           Is exist item in the collection.
functioniterator()→ inherited from Collection
           Supports a simple iteration over a nongeneric collection.
 

Property Getters/Setters Detail

getCount : Number 

function getCount()
Gets the number of elements actually contained in the collection.

get/set : GradientStop 

function get(index) / function set(index, value)
Gets the gradient stop by the index.
Parameters:
index - The index.
Returns:
The gradient stop.

Method Detail

add

function 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

function iterator()
Supports a simple iteration over a nongeneric collection.
Returns:

isExist

function isExist(index)
Is exist item in the collection.
Parameters:
index: Number - index of element.
Returns:

clear

function clear()
Removes all elements from collection.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.