IPortionCollection

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable

public interface IPortionCollection extends System.Collections.Generic.IGenericEnumerable<IPortion>

Represents a collection of a portions.

Methods

MethodDescription
get_Item(int index)Gets the element at the specified index.
getCount()Gets the number of elements actually contained in the collection.
add(IPortion value)Adds a Portion to the end of collection.
indexOf(IPortion item)Determines the index of a specific portion in collection.
insert(int index, IPortion value)Inserts a Portion into the collection at the specified index.
clear()Removes all elements from the collection.
contains(IPortion item)Determines whether the IGenericCollection contains a specific value.
remove(IPortion item)Removes the first occurrence of a specific object from the IGenericCollection.
removeAt(int index)Removes the element at the specified index of the collection.

get_Item(int index)

public abstract IPortion get_Item(int index)

Gets the element at the specified index.

Parameters:

ParameterTypeDescription
indexint

Returns: IPortion

getCount()

public abstract int getCount()

Gets the number of elements actually contained in the collection. Read-only int.

Returns: int

add(IPortion value)

public abstract void add(IPortion value)

Adds a Portion to the end of collection.

Parameters:

ParameterTypeDescription
valueIPortionThe Portion to be added to the end of the collection.

indexOf(IPortion item)

public abstract int indexOf(IPortion item)

Determines the index of a specific portion in collection.

Parameters:

ParameterTypeDescription
itemIPortionThe portion to locate in the collection.

Returns: int - The index of item if found in the collection; otherwise, -1.

insert(int index, IPortion value)

public abstract void insert(int index, IPortion value)

Inserts a Portion into the collection at the specified index.

Parameters:

ParameterTypeDescription
indexintThe zero-based index at which Portion should be inserted.
valueIPortionThe Portion to insert.

clear()

public abstract void clear()

Removes all elements from the collection.

contains(IPortion item)

public abstract boolean contains(IPortion item)

Determines whether the IGenericCollection contains a specific value.

Parameters:

ParameterTypeDescription
itemIPortionThe object to locate in the IGenericCollection.

Returns: boolean - true if item is found in the IGenericCollection; otherwise, false.

remove(IPortion item)

public abstract boolean remove(IPortion item)

Removes the first occurrence of a specific object from the IGenericCollection.

Parameters:

ParameterTypeDescription
itemIPortionThe object to remove from the IGenericCollection.

Returns: boolean - true if item was successfully removed from the IGenericCollection; otherwise, false. This method also returns false if item is not found in the original IGenericCollection.

removeAt(int index)

public abstract void removeAt(int index)

Removes the element at the specified index of the collection.

Parameters:

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