GradientStopCollection
GradientStopCollection class
Represnts a collection of gradient stops.
add
Name | Description |
---|
add (float, Color) | Creates the new gradient stop and adds it to the end of collection. |
Parameters:
Name | Type | Description |
---|
position | float | Position of the new gradient stop. |
color | Color | Color of the new radient stop. |
Returns:
GradientStop
addPresetColor
Name | Description |
---|
addPresetColor (float, int) | Creates the new gradient stop and adds it to the end of collection. |
Parameters:
Name | Type | Description |
---|
position | float | Position of the new gradient stop. |
presetColor | int | Color of the new radient stop. |
Returns:
GradientStop
addSchemeColor
Name | Description |
---|
addSchemeColor (float, int) | Creates the new gradient stop and adds it to the end of collection. |
Parameters:
Name | Type | Description |
---|
position | float | Position of the new gradient stop. |
schemeColor | int | Color of the new radient stop. |
Returns:
GradientStop
clear
Name | Description |
---|
clear () | Removes all gradient stops from a collection. |
getSyncRoot
Name | Description |
---|
getSyncRoot () | Returns a synchronization root. Read-only Object. |
Returns:
Object
getVersion
Name | Description |
---|
getVersion () | |
Returns:
long
get_Item
Name | Description |
---|
get_Item (int) | Returns the gradient stop by index. |
Returns:
GradientStop
insert
Name | Description |
---|
insert (int, float, Color) | Creates the new gradient stop and inserts it at the specified index to the collection. |
Parameters:
Name | Type | Description |
---|
index | int | Index in the collection where new gradient stop will be inserted. |
position | float | Position of the new gradient stop. |
color | Color | Color of the new radient stop. |
insertPresetColor
Name | Description |
---|
insertPresetColor (int, float, int) | Creates the new gradient stop and inserts it at the specified index to the collection. |
Parameters:
Name | Type | Description |
---|
index | int | Index in the collection where new gradient stop will be inserted. |
position | float | Position of the new gradient stop. |
presetColor | int | Color of the new radient stop. |
insertSchemeColor
Name | Description |
---|
insertSchemeColor (int, float, int) | Creates the new gradient stop and inserts it at the specified index to the collection. |
Parameters:
Name | Type | Description |
---|
index | int | Index in the collection where new gradient stop will be inserted. |
position | float | Position of the new gradient stop. |
schemeColor | int | Color of the new radient stop. |
isSynchronized
Name | Description |
---|
isSynchronized () | Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean. |
Returns:
boolean
iterator
Name | Description |
---|
iterator () | Returns an enumerator that iterates through the collection. |
Returns:
iteratorJava
Name | Description |
---|
iteratorJava () | Returns a java iterator for the entire collection. |
Returns:
removeAt
Name | Description |
---|
removeAt (int) | Removes a gradient stop at the specified index. |
Parameters:
Name | Type | Description |
---|
index | int | Index of a gradient stop that should be deleted. |
size
Name | Description |
---|
size () | Returns the number of gradient stops in a collection. Read-only int. |
Returns:
int