IGradientStopCollection
All Implemented Interfaces: com.aspose.slides.IGenericCollection
public interface IGradientStopCollection extends IGenericCollection<IGradientStop>
Represnts a collection of gradient stops.
Methods
Method | Description |
---|---|
get_Item(int index) | Returns the gradient stop by index. |
add(float position, Integer 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, Integer 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:
Parameter | Type | Description |
---|---|---|
index | int |
Returns: IGradientStop
add(float position, Integer color)
public abstract IGradientStop add(float position, Integer color)
Creates the new gradient stop and adds it to the end of collection.
Parameters:
Parameter | Type | Description |
---|---|---|
position | float | Position of the new gradient stop. |
color | java.lang.Integer | Color 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:
Parameter | Type | Description |
---|---|---|
position | float | Position of the new gradient stop. |
presetColor | int | Color 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:
Parameter | Type | Description |
---|---|---|
position | float | Position of the new gradient stop. |
schemeColor | int | Color of the new gradient stop. |
Returns: IGradientStop - Index of the new gradient stop in the collection.
insert(int index, float position, Integer color)
public abstract void insert(int index, float position, Integer color)
Creates the new gradient stop and inserts it at the specified index to the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index in the collection where new gradient stop will be inserted. |
position | float | Position of the new gradient stop. |
color | java.lang.Integer | Color 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:
Parameter | 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 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:
Parameter | 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 gradient stop. |
removeAt(int index)
public abstract void removeAt(int index)
Removes a gradient stop at the specified index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index of a gradient stop that should be deleted. |
clear()
public abstract void clear()
Removes all gradient stops from a collection.