com.aspose.html.collections

Class NodeList

    • Constructor Detail

      • NodeList

        public NodeList()
    • Method Detail

      • get_Item

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

        Method returns the indexth 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<Node>
        Parameters:
        index - The index.
        Returns:
        Returns node.
      • 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<Node> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<Node>
        Specified by:
        iterator in interface com.aspose.html.internal.ms.System.Collections.IEnumerable<Node>
        Specified by:
        iterator in interface Iterable<Node>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • toArray

        public Node[] toArray()

        Returns an enumerator that iterates through a collection.

        Returns:
        An IEnumerator object that can be used to iterate through the collection.