PortionCollection
PortionCollection class
Represents a collection of portions.
add
Name | Description |
---|---|
add (MathPortion) | Adds a Portion to the end of collection. |
Parameters:
Name | Type | Description |
---|---|---|
value | MathPortion | The Portion to be added to the end of the collection. |
Returns: void
add
Name | Description |
---|---|
add (Portion) | Adds a Portion to the end of collection. |
Parameters:
Name | Type | Description |
---|---|---|
value | Portion | The Portion to be added to the end of the collection. |
Returns: void
clear
Name | Description |
---|---|
clear () | Removes all elements from the collection. |
Returns: void
contains
Name | Description |
---|---|
contains (MathPortion) | Determines whether the IGenericCollection contains a specific value. |
Parameters:
Name | Type | Description |
---|---|---|
item | MathPortion | The object to locate in the IGenericCollection. |
Returns: boolean
contains
Name | Description |
---|---|
contains (Portion) | Determines whether the IGenericCollection contains a specific value. |
Parameters:
Name | Type | Description |
---|---|---|
item | Portion | The object to locate in the IGenericCollection. |
Returns: boolean
copyTo
Name | Description |
---|---|
copyTo (com.aspose.slides.IPortion[], int) | Copies the elements of the IGenericCollection to an Array, starting at a particular Array index. |
Parameters:
Name | Type | Description |
---|---|---|
array | com.aspose.slides.IPortion[] | The one-dimensional Array that is the destination of the elements copied from IGenericCollection. The Array must have zero-based indexing. |
arrayIndex | int | The zero-based index in array at which copying begins. |
Returns: void
Exception
Error | Condition |
---|---|
com.aspose.ms.System.ArgumentException | The number of elements in the source IGenericCollection is greater than the available space from arrayIndex to the end of the destination array. |
getCount
Name | Description |
---|---|
getCount () | Gets the number of elements actually contained in the collection. Read-only int. |
Returns: int
get_Item
Name | Description |
---|---|
get_Item (int) | Gets the element at the specified index. |
Returns: MathPortion, Portion
indexOf
Name | Description |
---|---|
indexOf (MathPortion) | Determines the index of a specific item in the List. |
Parameters:
Name | Type | Description |
---|---|---|
item | MathPortion | The object to locate in the List. |
Returns: int
indexOf
Name | Description |
---|---|
indexOf (Portion) | Determines the index of a specific item in the List. |
Parameters:
Name | Type | Description |
---|---|---|
item | Portion | The object to locate in the List. |
Returns: int
insert
Name | Description |
---|---|
insert (int, MathPortion) | Inserts a Portion into the collection at the specified index. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index at which Portion should be inserted. |
value | MathPortion | The Portion to insert. |
Returns: void
insert
Name | Description |
---|---|
insert (int, Portion) | Inserts a Portion into the collection at the specified index. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index at which Portion should be inserted. |
value | Portion | The Portion to insert. |
Returns: void
isReadOnly
Name | Description |
---|---|
isReadOnly () | Gets a value indicating whether the IGenericCollection is read-only. Read-only boolean. |
Returns: boolean
iterator
Name | Description |
---|---|
iterator () | Returns an enumerator that iterates through the collection. |
Returns:
iteratorJava
Name | Description |
---|---|
iteratorJava () | Returns a java iterator for the entire collection. |
Returns:
remove
Name | Description |
---|---|
remove (MathPortion) | Removes the first occurrence of a specific object from the IGenericCollection. |
Parameters:
Name | Type | Description |
---|---|---|
item | MathPortion | The object to remove from the IGenericCollection. |
Returns: boolean
Exception
Error | Condition |
---|---|
com.aspose.ms.System.NotSupportedException | The IGenericCollection is read-only. |
remove
Name | Description |
---|---|
remove (Portion) | Removes the first occurrence of a specific object from the IGenericCollection. |
Parameters:
Name | Type | Description |
---|---|---|
item | Portion | The object to remove from the IGenericCollection. |
Returns: boolean
Exception
Error | Condition |
---|---|
com.aspose.ms.System.NotSupportedException | The IGenericCollection is read-only. |
removeAt
Name | Description |
---|---|
removeAt (int) | Removes the element at the specified index of the collection. |
Parameters:
Name | Type | Description |
---|---|---|
index | int | The zero-based index of the element to remove. |
Returns: void
set_Item
Name | Description |
---|---|
set_Item (int, MathPortion) | Gets the element at the specified index. |
Returns: void
set_Item
Name | Description |
---|---|
set_Item (int, Portion) | Gets the element at the specified index. |
Returns: void