@DOMObjectAttribute @DOMNameAttribute(name="NodeList") @DOMIndexerAttribute(indexerType="Node") public abstract class NodeList extends DOMObject implements com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<Node>, IDOMCollectionIndexer<Node>
The NodeList provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.
PropertyChanged
Constructor and Description |
---|
NodeList() |
Modifier and Type | Method and Description |
---|---|
abstract Node |
get_Item(int index)
Method returns the indexth item in the collection.
|
abstract int |
getLength()
The number of nodes in the list.
|
abstract com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerator<Node> |
iterator()
Returns an enumerator that iterates through the collection.
|
Node[] |
toArray()
Returns an enumerator that iterates through a collection.
|
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@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.
get_Item
in interface IDOMCollectionIndexer<Node>
index
- The index.@DOMNameAttribute(name="length") public abstract int getLength()
The number of nodes in the list.
public abstract com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerator<Node> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<Node>
iterator
in interface com.aspose.html.internal.ms.System.Collections.IEnumerable<Node>
iterator
in interface Iterable<Node>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public Node[] toArray()
Returns an enumerator that iterates through a collection.
IEnumerator
object that can be used to iterate through the collection.