ColorOperationCollection
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.slides.IColorOperationCollection
public final class ColorOperationCollection implements IColorOperationCollection
Represents a collection of color transform operations.
Methods
Method | Description |
---|---|
size() | Returns the number of operations in a collection. |
get_Item(int index) | Returns or sets the operation at the specified index. |
set_Item(int index, IColorOperation value) | Returns or sets the operation at the specified index. |
add(int operation, float parameter) | Adds a new operation to the end of collection. |
add(int operation) | Adds a new operation to the end of collection. |
insert(int position, int operation, float parameter) | Inserts the new operation to a collection. |
insert(int position, int operation) | Inserts the new operation to a collection. |
removeAt(int index) | Removes the color operation from a collection. |
clear() | Removes all color operations. |
iterator() | Returns an enumerator that iterates through the collection. |
iteratorJava() | Returns a java iterator for the entire collection. |
copyTo(System.Array array, int index) | Copies all elements from the collection to the specified array. |
isSynchronized() | Returns a value indicating whether access to the collection is synchronized (thread-safe). |
getSyncRoot() | Returns a synchronization root. |
deepClone() | Creates a copy of a ColorOperationCollection collection. |
cloneT() | Clones current object |
size()
public final int size()
Returns the number of operations in a collection. Read-only int.
Returns: int
get_Item(int index)
public final IColorOperation get_Item(int index)
Returns or sets the operation at the specified index. Read/write ColorOperation.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int |
Returns: IColorOperation
set_Item(int index, IColorOperation value)
public final void set_Item(int index, IColorOperation value)
Returns or sets the operation at the specified index. Read/write ColorOperation.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | |
value | IColorOperation |
add(int operation, float parameter)
public final IColorOperation add(int operation, float parameter)
Adds a new operation to the end of collection.
Parameters:
Parameter | Type | Description |
---|---|---|
operation | int | Operation type. |
parameter | float | Operation’s parameter. |
Returns: IColorOperation - Added operation.
add(int operation)
public final IColorOperation add(int operation)
Adds a new operation to the end of collection.
Parameters:
Parameter | Type | Description |
---|---|---|
operation | int | Operation type. |
Returns: IColorOperation - Added operation.
insert(int position, int operation, float parameter)
public final IColorOperation insert(int position, int operation, float parameter)
Inserts the new operation to a collection.
Parameters:
Parameter | Type | Description |
---|---|---|
position | int | The index at which the operation will be inserted. |
operation | int | Operation type. |
parameter | float | Operation’s parameter. |
Returns: IColorOperation - Inserted operation.
insert(int position, int operation)
public final IColorOperation insert(int position, int operation)
Inserts the new operation to a collection.
Parameters:
Parameter | Type | Description |
---|---|---|
position | int | The index at which the operation will be inserted. |
operation | int | Operation type. |
Returns: IColorOperation - Inserted operation.
removeAt(int index)
public final void removeAt(int index)
Removes the color operation from a collection.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index of a color operation to remove. |
clear()
public final void clear()
Removes all color operations.
iterator()
public final System.Collections.Generic.IGenericEnumerator<IColorOperation> iterator()
Returns an enumerator that iterates through the collection.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IColorOperation> - A IGenericEnumerator that can be used to iterate through the collection.
iteratorJava()
public final System.Collections.Generic.IGenericEnumerator<IColorOperation> iteratorJava()
Returns a java iterator for the entire collection.
Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.IColorOperation> - An java.util.Iterator for the entire collection.
copyTo(System.Array array, int index)
public final void copyTo(System.Array array, int index)
Copies all elements from the collection to the specified array.
Parameters:
Parameter | Type | Description |
---|---|---|
array | com.aspose.ms.System.Array | Target array. |
index | int | Starting index in the target array. |
isSynchronized()
public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.
Returns: boolean
getSyncRoot()
public final Object getSyncRoot()
Returns a synchronization root. Read-only Object.
Returns: java.lang.Object
deepClone()
public final Object deepClone()
Creates a copy of a ColorOperationCollection collection.
Returns: java.lang.Object - New ColorOperationCollection collection.
cloneT()
public final IColorOperationCollection cloneT()
Clones current object
Returns: IColorOperationCollection - Clone