Class HTMLCollection

Class HTMLCollection

Namespace: Aspose.Html.Collections
Assembly: Aspose.HTML.dll (25.1.0)

La clase Aspose.Html.Collections.HTMLCollection representa una colección genérica de Aspose.Html.Dom.Element.

[ComVisible(true)]
[DOMName("HTMLCollection")]
[DOMObject]
public abstract class HTMLCollection : DOMObject, INotifyPropertyChanged, IEnumerable<element>, IEnumerable

Herencia

objectDOMObjectHTMLCollection

Implementa

INotifyPropertyChanged, IEnumerable<element>, IEnumerable

Miembros heredados

DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructores

HTMLCollection()

protected HTMLCollection()

Propiedades

Length

El número de nodos en la lista.

[DOMName("length")]
public abstract int Length { get; }

Valor de la propiedad

int

this[int]

Devuelve el elemento en la colección en el índice especificado. Si el índice es mayor o igual que el número de nodos en la lista, devuelve null.

[DOMName("item")]
public abstract Element this[int index] { get; }

Valor de la propiedad

Element

Métodos

GetEnumerator()

Obtiene el enumerador.

public abstract IEnumerator<element> GetEnumerator()

Devuelve

IEnumerator<Element&gt;

Un objeto System.Collections.IEnumerator que se puede usar para iterar a través de la colección.

GetPlatformType()

Este método se utiliza para recuperar el objeto ECMAScript System.Type.

public override Type GetPlatformType()

Devuelve

Type

El objeto ECMAScript System.Type.

NamedItem(string)

Devuelve el elemento en la colección que coincide con el nombre especificado.

[DOMName("namedItem")]
[DOMNullable]
public Element NamedItem(string name)

Parámetros

name string

El nombre del elemento.

Devuelve

Element

El elemento coincidente.

Véase También

IEnumerable<t>, IEnumerable<t>, IDisposable </t></t></element>

 Español