com.aspose.html.collections

Class HTMLCollection

    • Constructor Detail

      • HTMLCollection

        public HTMLCollection()
    • Method Detail

      • get_Item

        @DOMNameAttribute(name="item")
        public abstract Element get_Item(int index)

        Returns the index-th item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.

        Specified by:
        get_Item in interface IDOMCollectionIndexer<Element>
        Parameters:
        index - The index. Value: The Element.
        Returns:
        Returns element.
      • getLength

        @DOMNameAttribute(name="length")
        public abstract int getLength()

        The number of nodes in the list.

      • iterator

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

        Gets the enumerator.

        Specified by:
        iterator in interface com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<Element>
        Specified by:
        iterator in interface com.aspose.html.internal.ms.System.Collections.IEnumerable<Element>
        Specified by:
        iterator in interface Iterable<Element>
        Returns:
        An IEnumerator object that can be used to iterate through the collection.