com.aspose.words
Class GradientStopCollection

java.lang.Object
    extended by com.aspose.words.GradientStopCollection
All Implemented Interfaces:
java.lang.Iterable

public class GradientStopCollection 
extends java.lang.Object

Contains a collection of GradientStop objects. You do not create instances of this class directly. Use the Fill.GradientStops property to access gradient stops of fill objects.

Property Getters/Setters Summary
intgetCount()
           Gets an integer value indicating the number of items in the collection.
GradientStopget(int index)
voidset(int index, GradientStop value)
           Gets or sets a GradientStop object in the collection.
 
Method Summary
GradientStopadd(GradientStop gradientStop)
           Adds a specified GradientStop to a gradient.
GradientStopinsert(int index, GradientStop gradientStop)
           Inserts a GradientStop to the collection at a specified index.
java.util.Iterator<GradientStop>iterator()
           Returns an enumerator that iterates through the collection.
booleanremove(GradientStop gradientStop)
           Removes a specified GradientStop from the collection.
GradientStopremoveAt(int index)
           Removes a GradientStop from the collection at a specified index.
 

Property Getters/Setters Detail

getCount

public int getCount()
Gets an integer value indicating the number of items in the collection.

get/set

public GradientStop get(int index) / public void set(int index, GradientStop value)
Gets or sets a GradientStop object in the collection.

Method Detail

add

public GradientStop add(GradientStop gradientStop)
Adds a specified GradientStop to a gradient.

insert

public GradientStop insert(int index, GradientStop gradientStop)
Inserts a GradientStop to the collection at a specified index.

iterator

public java.util.Iterator<GradientStopiterator()
Returns an enumerator that iterates through the collection.

remove

public boolean remove(GradientStop gradientStop)
Removes a specified GradientStop from the collection.
Returns:
True if gradient stop was successfully removed, otherwise false.

removeAt

public GradientStop removeAt(int index)
Removes a GradientStop from the collection at a specified index.
Returns:
Removed GradientStop.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.