IGradientStopCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface IGradientStopCollection extends IGenericCollection<IGradientStop>

Represnts a collection of gradient stops.

Methods

MethodDescription
get_Item(int index)Returns the gradient stop by index.
add(float position, Color color)Creates the new gradient stop and adds it to the end of collection.
addPresetColor(float position, int presetColor)Creates the new gradient stop and adds it to the end of collection.
addSchemeColor(float position, int schemeColor)Creates the new gradient stop and adds it to the end of collection.
insert(int index, float position, Color color)Creates the new gradient stop and inserts it at the specified index to the collection.
insertPresetColor(int index, float position, int presetColor)Creates the new gradient stop and inserts it at the specified index to the collection.
insertSchemeColor(int index, float position, int schemeColor)Creates the new gradient stop and inserts it at the specified index to the collection.
removeAt(int index)Removes a gradient stop at the specified index.
clear()Removes all gradient stops from a collection.

get_Item(int index)

public abstract IGradientStop get_Item(int index)

Returns the gradient stop by index.

Parameters:

ParameterTypeDescription
indexint

Returns: IGradientStop

add(float position, Color color)

public abstract IGradientStop add(float position, Color color)

Creates the new gradient stop and adds it to the end of collection.

Parameters:

ParameterTypeDescription
positionfloatPosition of the new gradient stop.
colorjava.awt.ColorColor of the new gradient stop.

Returns: IGradientStop - Index of the new gradient stop in the collection.

addPresetColor(float position, int presetColor)

public abstract IGradientStop addPresetColor(float position, int presetColor)

Creates the new gradient stop and adds it to the end of collection.

Parameters:

ParameterTypeDescription
positionfloatPosition of the new gradient stop.
presetColorintColor of the new gradient stop.

Returns: IGradientStop - Index of the new gradient stop in the collection.

addSchemeColor(float position, int schemeColor)

public abstract IGradientStop addSchemeColor(float position, int schemeColor)

Creates the new gradient stop and adds it to the end of collection.

Parameters:

ParameterTypeDescription
positionfloatPosition of the new gradient stop.
schemeColorintColor of the new gradient stop.

Returns: IGradientStop - Index of the new gradient stop in the collection.

insert(int index, float position, Color color)

public abstract void insert(int index, float position, Color color)

Creates the new gradient stop and inserts it at the specified index to the collection.

Parameters:

ParameterTypeDescription
indexintIndex in the collection where new gradient stop will be inserted.
positionfloatPosition of the new gradient stop.
colorjava.awt.ColorColor of the new gradient stop.

insertPresetColor(int index, float position, int presetColor)

public abstract void insertPresetColor(int index, float position, int presetColor)

Creates the new gradient stop and inserts it at the specified index to the collection.

Parameters:

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

insertSchemeColor(int index, float position, int schemeColor)

public abstract void insertSchemeColor(int index, float position, int schemeColor)

Creates the new gradient stop and inserts it at the specified index to the collection.

Parameters:

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

removeAt(int index)

public abstract void removeAt(int index)

Removes a gradient stop at the specified index.

Parameters:

ParameterTypeDescription
indexintIndex of a gradient stop that should be deleted.

clear()

public abstract void clear()

Removes all gradient stops from a collection.