GradientStopCollection
GradientStopCollection class
Represents the gradient stop collection.
Properties
| Name | Type | Description |
|---|---|---|
| Count | int | |
| Item (int) | GradientStop | Gets the gradient stop by the index. |
Methods
| Name | Description |
|---|---|
| add | Add a gradient stop. |
| clear | |
| removeAt | |
| iterator | Reserved for internal use. |
GradientStopCollection.Count property
Type: int
GradientStopCollection.Item (int) property
Gets the gradient stop by the index.
Type: GradientStop
add(position, color)
Add a gradient stop.
| Parameter | Type | Description |
|---|---|---|
| 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()
removeAt(index)
iterator()
Reserved for internal use.