Property Getters/Setters Summary | ||
---|---|---|
function | getCount() | |
Gets the number of elements actually contained in the collection. | ||
function | get(index) | |
function | set(index, value) | |
Gets the gradient stop by the index. |
Method Summary | ||
---|---|---|
function | add(position, color) | |
Add a gradient stop. | ||
function | clear() | → inherited from Collection |
Removes all elements from collection. | ||
function | isExist(index) | → inherited from Collection |
Is exist item in the collection. | ||
function | iterator() | → inherited from Collection |
Supports a simple iteration over a nongeneric collection. |
Property Getters/Setters Detail |
---|
getCount : Number | |
function getCount() |
get/set : GradientStop | |
function get(index) / function set(index, value) |
index
- The index.Method Detail |
---|
add | |
function add(position, color) |
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() |
isExist | |
function isExist(index) |
index: Number
- index of element.clear | |
function clear() |