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
| Constructor | Description |
|---|---|
| ElementListImplementation |
Methods
| Method | Description |
|---|---|
| addElement | Add element to list. |
| getCount | Gets the number of elements in the ElementList. |
| item | Retrieves a element at the given index. |
| iterator | Gets 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:
| Parameter | Type | Description |
|---|---|---|
| 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.