PortionCollection

PortionCollection class

Represents a collection of portions.

add

NameDescription
add (MathPortion)Adds a Portion to the end of collection.

Parameters:

NameTypeDescription
valueMathPortionThe Portion to be added to the end of the collection.

Returns: void


add

NameDescription
add (Portion)Adds a Portion to the end of collection.

Parameters:

NameTypeDescription
valuePortionThe Portion to be added to the end of the collection.

Returns: void


clear

NameDescription
clear ()Removes all elements from the collection.

Returns: void


contains

NameDescription
contains (MathPortion)Determines whether the IGenericCollection contains a specific value.

Parameters:

NameTypeDescription
itemMathPortionThe object to locate in the IGenericCollection.

Returns: boolean


contains

NameDescription
contains (Portion)Determines whether the IGenericCollection contains a specific value.

Parameters:

NameTypeDescription
itemPortionThe object to locate in the IGenericCollection.

Returns: boolean


copyTo

NameDescription
copyTo (com.aspose.slides.IPortion[], int)Copies the elements of the IGenericCollection to an Array, starting at a particular Array index.

Parameters:

NameTypeDescription
arraycom.aspose.slides.IPortion[]The one-dimensional Array that is the destination of the elements copied from IGenericCollection. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in array at which copying begins.

Returns: void

Exception

ErrorCondition
com.aspose.ms.System.ArgumentExceptionThe number of elements in the source IGenericCollection is greater than the available space from arrayIndex to the end of the destination array.

getCount

NameDescription
getCount ()Gets the number of elements actually contained in the collection. Read-only int.

Returns: int


get_Item

NameDescription
get_Item (int)Gets the element at the specified index.

Returns: MathPortion, Portion


indexOf

NameDescription
indexOf (MathPortion)Determines the index of a specific item in the List.

Parameters:

NameTypeDescription
itemMathPortionThe object to locate in the List.

Returns: int


indexOf

NameDescription
indexOf (Portion)Determines the index of a specific item in the List.

Parameters:

NameTypeDescription
itemPortionThe object to locate in the List.

Returns: int


insert

NameDescription
insert (int, MathPortion)Inserts a Portion into the collection at the specified index.

Parameters:

NameTypeDescription
indexintThe zero-based index at which Portion should be inserted.
valueMathPortionThe Portion to insert.

Returns: void


insert

NameDescription
insert (int, Portion)Inserts a Portion into the collection at the specified index.

Parameters:

NameTypeDescription
indexintThe zero-based index at which Portion should be inserted.
valuePortionThe Portion to insert.

Returns: void


isReadOnly

NameDescription
isReadOnly ()Gets a value indicating whether the IGenericCollection is read-only. Read-only boolean.

Returns: boolean


iterator

NameDescription
iterator ()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava ()Returns a java iterator for the entire collection.

Returns:


remove

NameDescription
remove (MathPortion)Removes the first occurrence of a specific object from the IGenericCollection.

Parameters:

NameTypeDescription
itemMathPortionThe object to remove from the IGenericCollection.

Returns: boolean

Exception

ErrorCondition
com.aspose.ms.System.NotSupportedExceptionThe IGenericCollection is read-only.

remove

NameDescription
remove (Portion)Removes the first occurrence of a specific object from the IGenericCollection.

Parameters:

NameTypeDescription
itemPortionThe object to remove from the IGenericCollection.

Returns: boolean

Exception

ErrorCondition
com.aspose.ms.System.NotSupportedExceptionThe IGenericCollection is read-only.

removeAt

NameDescription
removeAt (int)Removes the element at the specified index of the collection.

Parameters:

NameTypeDescription
indexintThe zero-based index of the element to remove.

Returns: void


set_Item

NameDescription
set_Item (int, MathPortion)Gets the element at the specified index.

Returns: void


set_Item

NameDescription
set_Item (int, Portion)Gets the element at the specified index.

Returns: void