com.aspose.pdf.tagged.logicalstructure

Class ElementList

  • All Implemented Interfaces:
    com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Element>, com.aspose.ms.System.Collections.IEnumerable<Element>, Iterable<Element>
    Direct Known Subclasses:
    ElementListImplementation


    public abstract class ElementList
    extends Object
    implements com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Element>

    Represents an ordered collection of elements.

    • Method Detail

      • getCount

        public abstract int getCount()

        Gets the number of elements in the ElementList.

        Returns:
        int value
      • item

        public abstract Element item(int index)

        Retrieves a element at the given index.

        Parameters:
        index - The index into the list of elements.
        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.
      • get_Item

        public Element get_Item(int index)
      • iterator

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

        Gets an enumerator that iterates through the collection of elements.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Element>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<Element>
        Specified by:
        iterator in interface Iterable<Element>
        Returns:
        An enumerator used to iterate through the collection of elements.
      • addElement

        public void addElement(Element element)
      • addElement

        public abstract void addElement(Element element,
                                        boolean updatePdfDictionary)
      • removeElement

        public abstract void removeElement(Element element)