ElementListImplementation

Inheritance: java.lang.Object, com.aspose.pdf.tagged.logicalstructure.ElementList com.aspose.pdf.tagged.logicalstructure.ElementListImplementation, com.aspose.pdf.tagged.logicalstructure.ElementList, com.aspose.pdf.tagged.logicalstructure.ElementListImplementation

All Implemented Interfaces: com.aspose.ms.System.Collections.Generic.IGenericEnumerable< Element >, com.aspose.ms.System.Collections.IEnumerable< Element >, Iterable < Element >

public class ElementListImplementation extends ElementList

Constructors

ConstructorDescription
ElementListImplementation

Methods

MethodDescription
addElementAdd element to list.
getCountGets the number of elements in the ElementList.
itemRetrieves a element at the given index.
iteratorGets an enumerator that iterates through the collection of elements.

ElementListImplementation

addElement

Add element to list.

getCount

public int getCount()

Gets the number of elements in the ElementList.

Returns: int value

item

public Element item(int index)

Retrieves a element at the given index.

Parameters:

ParameterTypeDescription
index

Returns: The /Aspose.Pdf.LogicalStructure.Element with the specified index in the collection. If index is greater than or equal to the number of elements in the list, this returns null.

iterator

public com.aspose.ms.System.Collections.Generic.IGenericEnumerator< Element > iterator()

Gets an enumerator that iterates through the collection of elements.

Returns: An enumerator used to iterate through the collection of elements.