ElementCollection

Inheritance: java.lang.Object

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

public class ElementCollection implements System.Collections.Generic.IGenericEnumerable<Element>

Collection of base logical structure elements.

Methods

MethodDescription
getCount()Count of elements.
remove(Element item)Remove item from collection.
iterator()Returns an enumerator that iterates through the collection.
get_Item(int index)Gets Element by index.

getCount()

public final int getCount()

Count of elements.

Returns: int - int value

remove(Element item)

public final boolean remove(Element item)

Remove item from collection.

Parameters:

ParameterTypeDescription
itemElementItem to remove.

Returns: boolean - boolean value

iterator()

public final System.Collections.Generic.IGenericEnumerator<Element> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.pdf.Element> - Enumerator of elements of type Element.

get_Item(int index)

public final Element get_Item(int index)

Gets Element by index.

Parameters:

ParameterTypeDescription
indexintIndex of element.

Returns: Element - Retreived element.