class
GradientStopCollection
Source: aspose.
Represents the gradient stop collection.
Methods
add(position, color, alpha)
Add a gradient stop.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
position |
Number |
|
The position of the stop,in unit of percentage. |
color |
|
The color of the stop. |
|
alpha |
Number |
|
The alpha of the color. |
add(position, color, alpha)
Add a gradient stop.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
position |
Number |
|
The position of the stop,in unit of percentage. |
color |
|
The color of the stop. |
|
alpha |
Number |
|
The alpha of the color. |
add()
Reserved for internal use.
clear()
contains()
Reserved for internal use.
get(index) → GradientStop
Gets the gradient stop by the index.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
index |
Number |
|
The index. |
- Returns
-
GradientStop
The gradient stop.
get()
Reserved for internal use.
getCount()
indexOf()
Reserved for internal use.
iterator()
removeAt()
set(index) → GradientStop
Gets the gradient stop by the index.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
index |
Number |
|
The index. |
- Returns
-
GradientStop
The gradient stop.