GradientStopCollection

GradientStopCollection class

Represnts a collection of gradient stops.

add

NameDescription
add (float, Color)Creates the new gradient stop and adds it to the end of collection.

Parameters:

NameTypeDescription
positionfloatPosition of the new gradient stop.
colorColorColor of the new radient stop.

Returns: GradientStop


addPresetColor

NameDescription
addPresetColor (float, int)Creates the new gradient stop and adds it to the end of collection.

Parameters:

NameTypeDescription
positionfloatPosition of the new gradient stop.
presetColorintColor of the new radient stop.

Returns: GradientStop


addSchemeColor

NameDescription
addSchemeColor (float, int)Creates the new gradient stop and adds it to the end of collection.

Parameters:

NameTypeDescription
positionfloatPosition of the new gradient stop.
schemeColorintColor of the new radient stop.

Returns: GradientStop


clear

NameDescription
clear ()Removes all gradient stops from a collection.

getSyncRoot

NameDescription
getSyncRoot ()Returns a synchronization root. Read-only Object.

Returns: Object


getVersion

NameDescription
getVersion ()

Returns: long


get_Item

NameDescription
get_Item (int)Returns the gradient stop by index.

Returns: GradientStop


insert

NameDescription
insert (int, float, Color)Creates the new gradient stop and inserts it at the specified index to the collection.

Parameters:

NameTypeDescription
indexintIndex in the collection where new gradient stop will be inserted.
positionfloatPosition of the new gradient stop.
colorColorColor of the new radient stop.

insertPresetColor

NameDescription
insertPresetColor (int, float, int)Creates the new gradient stop and inserts it at the specified index to the collection.

Parameters:

NameTypeDescription
indexintIndex in the collection where new gradient stop will be inserted.
positionfloatPosition of the new gradient stop.
presetColorintColor of the new radient stop.

insertSchemeColor

NameDescription
insertSchemeColor (int, float, int)Creates the new gradient stop and inserts it at the specified index to the collection.

Parameters:

NameTypeDescription
indexintIndex in the collection where new gradient stop will be inserted.
positionfloatPosition of the new gradient stop.
schemeColorintColor of the new radient stop.

isSynchronized

NameDescription
isSynchronized ()Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean


iterator

NameDescription
iterator ()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava ()Returns a java iterator for the entire collection.

Returns:


removeAt

NameDescription
removeAt (int)Removes a gradient stop at the specified index.

Parameters:

NameTypeDescription
indexintIndex of a gradient stop that should be deleted.

size

NameDescription
size ()Returns the number of gradient stops in a collection. Read-only int.

Returns: int