com.aspose.html.collections

Class HTMLCollection

    • Constructor Detail

      • HTMLCollection

        public HTMLCollection(Node owner,
                              NodeFilter filter)

        Initializes a new instance of the HTMLCollection class.

        Parameters:
        owner - The owner node.
        filter - The node filter.
    • Method Detail

      • get_Item

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

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

        Gets the enumerator.

        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 T:System.Collections.IEnumerator object 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.
      • dispose

        public void dispose()

        Releases unmanaged and - optionally - managed resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable