public final class GradientStopCollection extends PVIObject implements IGradientStopCollection
Represnts a collection of gradient stops.
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
|
IGradientStop |
get_Item(int index)
Returns the gradient stop by index.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
long |
getVersion()
Version.
|
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.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IGradientStop> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IGradientStop> |
iteratorJava()
Returns a java iterator for the entire collection.
|
void |
removeAt(int index)
Removes a gradient stop at the specified index.
|
int |
size()
Returns the number of gradient stops in a collection.
|
equals, getParent_Immediate, getParent_IPresentationComponent, getParent_ISlideComponent, getPresentation, getSlide, hashCodepublic long getVersion()
Version.
Read-only long.
getVersion in class PVIObjectpublic final int size()
Returns the number of gradient stops in a collection.
Read-only int.
size in interface com.aspose.ms.System.Collections.ICollection<IGradientStop>public final IGradientStop get_Item(int index)
Returns the gradient stop by index.
get_Item in interface IGradientStopCollectionpublic final IGradientStop add(float position, java.awt.Color color)
Creates the new gradient stop and adds it to the end of collection.
add in interface IGradientStopCollectionposition - Position of the new gradient stop.color - Color of the new radient stop.public final IGradientStop addPresetColor(float position, int presetColor)
Creates the new gradient stop and adds it to the end of collection.
addPresetColor in interface IGradientStopCollectionposition - Position of the new gradient stop.presetColor - Color of the new radient stop.public final IGradientStop addSchemeColor(float position, int schemeColor)
Creates the new gradient stop and adds it to the end of collection.
addSchemeColor in interface IGradientStopCollectionposition - Position of the new gradient stop.schemeColor - Color of the new radient stop.public final 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.
insert in interface IGradientStopCollectionindex - 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.public final void insertPresetColor(int index,
float position,
int presetColor)
Creates the new gradient stop and inserts it at the specified index to the collection.
insertPresetColor in interface IGradientStopCollectionindex - 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.public final void insertSchemeColor(int index,
float position,
int schemeColor)
Creates the new gradient stop and inserts it at the specified index to the collection.
insertSchemeColor in interface IGradientStopCollectionindex - 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.public final void removeAt(int index)
Removes a gradient stop at the specified index.
removeAt in interface IGradientStopCollectionindex - Index of a gradient stop that should be deleted.public final void clear()
Removes all gradient stops from a collection.
clear in interface IGradientStopCollectionpublic final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IGradientStop> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IGradientStop>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IGradientStop>iterator in interface java.lang.Iterable<IGradientStop>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IGradientStop> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<IGradientStop>Iterator for the entire collection.public final void copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
copyTo in interface com.aspose.ms.System.Collections.ICollection<IGradientStop>array - Target array.index - Starting index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean.
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IGradientStop>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IGradientStop>Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.