com.aspose.html.collections

Class NodeList

    • Constructor Detail

      • NodeList

        public NodeList(Node owner)

        Initializes a new instance of the NodeList class.

        Parameters:
        owner - The node owner.
    • Method Detail

      • get_Item

        @DOMNameAttribute(name="item")
        public 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.
      • iterator

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

        Returns an enumerator that iterates through the collection.

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

        public com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()

        Returns an enumerator that iterates through a collection.

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