Class HTMLCollection

Class HTMLCollection

Nombre del espacio: Aspose.Html.Collections Colección: Aspose.HTML.dll (25.4.0)

El Aspose.Html.Collections.HTMLCollection representa una colección genérica de Aspose.Html.Dom.Elemento.

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

Inheritance

object DOMObject HTMLCollection

Implements

INotifyPropertyChanged ,y, IEnumerable ,y, IEnumerable

Miembros heredados

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

Constructors

Colección HTML()

protected HTMLCollection()

Properties

Length

El número de nódulos en la lista.

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

Valor de la propiedad

int

Este[Int]

Si el índice es mayor o igual al número de nódulos en la lista, esto devuelve cero.

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

Valor de la propiedad

Element

Methods

GetEnumerator()

Obtenga el enumerador.

public abstract IEnumerator<element> GetEnumerator()

Returns

IEnumerator &ylt; Element >

Un objeto System.Collections.IEnumerator que se puede utilizar 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()

Returns

Type

El objeto ECMAScript System.Type.

NamedItem(El string)

Devolve el elemento en la colección correspondiente al nombre especificado.

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

Parameters

name string

El nombre del elemento.

Returns

Element

El elemento correspondiente

Ver también

IEnumerable , IEnumerable , IDisposable

 Español