@DOMObjectAttribute @DOMNameAttribute(name="HTMLCollection") @DOMIndexerAttribute(indexerType="Element") public abstract class HTMLCollection extends DOMObject implements com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Element>, IDOMCollectionIndexer<Element>
The HTMLCollection represents a generic collection of Element.
com.aspose.ms.System.Collections.IEnumerator{Element},
IDOMCollectionIndexer{Element},
com.aspose.ms.System.Collections.IEnumerator{Element},
IDisposablePropertyChanged, PropertyChangedDelegate| 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.ms.System.Collections.Generic.IGenericEnumerator<Element> |
iterator()
Gets the enumerator.
|
Element |
namedItem(java.lang.String name)
Returns the item in the collection matched specified name.
|
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding@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(java.lang.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.ms.System.Collections.Generic.IGenericEnumerator<Element> iterator()
Gets the enumerator.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Element>iterator in interface com.aspose.ms.System.Collections.IEnumerable<Element>iterator in interface java.lang.Iterable<Element>IEnumerator object that can be used to iterate through the collection.