Class HTMLCollection
Namespace: Aspose.Html.Collections
Assembly: Aspose.HTML.dll (25.1.0)
La Aspose.Html.Collections.HTMLCollection rappresenta una collezione generica di Aspose.Html.Dom.Element.
[ComVisible(true)]
[DOMName("HTMLCollection")]
[DOMObject]
public abstract class HTMLCollection : DOMObject, INotifyPropertyChanged, IEnumerable<element>, IEnumerable
Ereditarietà
object ← DOMObject ← HTMLCollection
Implementa
INotifyPropertyChanged, IEnumerable<element>, IEnumerable
Membri Ereditati
DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Costruttori
HTMLCollection()
protected HTMLCollection()
Proprietà
Length
Il numero di nodi nella lista.
[DOMName("length")]
public abstract int Length { get; }
Valore della Proprietà
this[int]
Restituisce l’elemento all’indice specificato nella collezione. Se l’indice è maggiore o uguale al numero di nodi nella lista, restituisce null.
[DOMName("item")]
public abstract Element this[int index] { get; }
Valore della Proprietà
Metodi
GetEnumerator()
Ottiene l’enumeratore.
public abstract IEnumerator<element> GetEnumerator()
Restituisce
IEnumerator<Element>
Un oggetto System.Collections.IEnumerator che può essere utilizzato per iterare attraverso la collezione.
GetPlatformType()
Questo metodo viene utilizzato per recuperare l’oggetto ECMAScript System.Type.
public override Type GetPlatformType()
Restituisce
L’oggetto ECMAScript System.Type.
NamedItem(string)
Restituisce l’elemento nella collezione che corrisponde al nome specificato.
[DOMName("namedItem")]
[DOMNullable]
public Element NamedItem(string name)
Parametri
name
string
Il nome dell’elemento.
Restituisce
L’elemento corrispondente
Vedi Anche
IEnumerable<t>, IEnumerable<t>, IDisposable </t></t></element>