com.aspose.slides
Interface IGradientStopCollection

All Superinterfaces:
com.aspose.ms.System.Collections.IEnumerable<IGradientStop>, IGenericCollection<IGradientStop>, com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IGradientStop>, java.lang.Iterable<IGradientStop>
All Known Implementing Classes:
GradientStopCollection

public interface IGradientStopCollection
extends IGenericCollection<IGradientStop>

Represnts a collection of gradient stops.


Method Summary
 IGradientStop add(float position, java.awt.Color color)
           Creates the new gradient stop and adds it to the end of collection.
 IGradientStop addPresetColor(float position, int presetColor)
           Creates the new gradient stop and adds it to the end of collection.
 IGradientStop addSchemeColor(float position, int schemeColor)
           Creates the new gradient stop and adds it to the end of collection.
 void clear()
           Removes all gradient stops from a collection.
 IGradientStop get_Item(int index)
           Returns the gradient stop by index.
 void insert(int index, float position, java.awt.Color color)
           Creates the new gradient stop and inserts it at the specified index to the collection.
 void insertPresetColor(int index, float position, int presetColor)
           Creates the new gradient stop and inserts it at the specified index to the collection.
 void insertSchemeColor(int index, float position, int schemeColor)
           Creates the new gradient stop and inserts it at the specified index to the collection.
 void removeAt(int index)
           Removes a gradient stop at the specified index.
 
Methods inherited from interface com.aspose.slides.IGenericCollection
copyTo, getSyncRoot, isSynchronized, size
 
Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable
iterator
 

Method Detail

get_Item

IGradientStop get_Item(int index)

Returns the gradient stop by index.


add

IGradientStop add(float position,
                  java.awt.Color color)

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

Parameters:
position - Position of the new gradient stop.
color - Color of the new radient stop.
Returns:
Index of the new gradient stop in the collection.

addPresetColor

IGradientStop addPresetColor(float position,
                             int presetColor)

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

Parameters:
position - Position of the new gradient stop.
presetColor - Color of the new radient stop.
Returns:
Index of the new gradient stop in the collection.

addSchemeColor

IGradientStop addSchemeColor(float position,
                             int schemeColor)

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

Parameters:
position - Position of the new gradient stop.
schemeColor - Color of the new radient stop.
Returns:
Index of the new gradient stop in the collection.

insert

void insert(int index,
            float position,
            java.awt.Color color)

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

Parameters:
index - Index in the collection where new gradient stop will be inserted.
position - Position of the new gradient stop.
color - Color of the new radient stop.

insertPresetColor

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

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

Parameters:
index - Index in the collection where new gradient stop will be inserted.
position - Position of the new gradient stop.
presetColor - Color of the new radient stop.

insertSchemeColor

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

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

Parameters:
index - Index in the collection where new gradient stop will be inserted.
position - Position of the new gradient stop.
schemeColor - Color of the new radient stop.

removeAt

void removeAt(int index)

Removes a gradient stop at the specified index.

Parameters:
index - Index of a gradient stop that should be deleted.

clear

void clear()

Removes all gradient stops from a collection.



Copyright © Copyright 2004-2016 Aspose Pty Ltd. All Rights Reserved.