@DOMObjectAttribute @DOMNameAttribute(name="HTMLCollection") @DOMIndexerAttribute(indexerType="Element") public abstract class HTMLCollection extends DOMObject implements com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<Element>, IDOMCollectionIndexer<Element>
The HTMLCollection
represents a generic collection of Element
.
IEnumerable{Element}
,
IDOMCollectionIndexer{Element}
,
IEnumerable{Element}
,
IDisposable
PropertyChanged
Constructor and Description |
---|
HTMLCollection() |
Modifier and Type | Method and Description |
---|---|
abstract Element |
get_Item(int index)
Returns the index-th item in the collection.
|
abstract int |
getLength()
The number of nodes in the list.
|
abstract com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerator<Element> |
iterator()
Gets the enumerator.
|
Element |
namedItem(String name)
Returns the item in the collection matched specified name.
|
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
@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.
get_Item
in interface IDOMCollectionIndexer<Element>
index
- The index.
Value:
The Element
.@DOMNameAttribute(name="namedItem") @DOMNullableAttribute public Element namedItem(String name)
Returns the item in the collection matched specified name.
name
- The element name.@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<Element> iterator()
Gets the enumerator.
iterator
in interface com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<Element>
iterator
in interface com.aspose.html.internal.ms.System.Collections.IEnumerable<Element>
iterator
in interface Iterable<Element>
IEnumerator
object that can be used to iterate through the collection.