Class HTMLCollection

Class HTMLCollection

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

A classe Aspose.Html.Collections.HTMLCollection representa uma coleção genérica de Aspose.Html.Dom.Element.

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

Herança

objectDOMObjectHTMLCollection

Implementa

INotifyPropertyChanged, IEnumerable<element>, IEnumerable

Membros Herdados

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

Construtores

HTMLCollection()

protected HTMLCollection()

Propriedades

Length

O número de nós na lista.

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

Valor da Propriedade

int

this[int]

Retorna o item de índice-th na coleção. Se o índice for maior ou igual ao número de nós na lista, isso retorna null.

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

Valor da Propriedade

Element

Métodos

GetEnumerator()

Obtém o enumerador.

public abstract IEnumerator<element> GetEnumerator()

Retorna

IEnumerator<Element&gt;

Um objeto System.Collections.IEnumerator que pode ser usado para iterar pela coleção.

GetPlatformType()

Este método é usado para recuperar o objeto ECMAScript System.Type.

public override Type GetPlatformType()

Retorna

Type

O objeto ECMAScript System.Type.

NamedItem(string)

Retorna o item na coleção que corresponde ao nome especificado.

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

Parâmetros

name string

O nome do elemento.

Retorna

Element

O elemento correspondente.

Veja Também

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

 Português