Class HTMLCollection

Class HTMLCollection

Numele spaţiului: Aspose.Html.Collections Asamblare: Aspose.HTML.dll (25.4.0)

Aspose.Html.Collections.HTMLCollection reprezintă o colecție generică a Aspose.Html.Dom.Element.

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

Inheritance

object DOMObject HTMLCollection

Implements

INotifyPropertyChanged , IEnumerable , IEnumerable

Membrii moștenitori

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

Constructors

Colecția HTML()

protected HTMLCollection()

Properties

Length

Numărul de noduri din listă.

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

Valoarea proprietății

int

Această[int]

Dacă indexul este mai mare sau egală cu numărul de noduri din listă, acesta returnează zero.

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

Valoarea proprietății

Element

Methods

GetEnumerator()

Obțineți enumeratorul.

public abstract IEnumerator<element> GetEnumerator()

Returns

IEnumerator < Element >

Un obiect System.Collections.IEnumerator care poate fi folosit pentru a itera prin colecție.

GetPlatformType()

Această metodă este utilizată pentru a obține obiectul ECMAScript System.Type.

public override Type GetPlatformType()

Returns

Type

Obiectul ECMAScript este System.Type.

NamedItem(Strângere)

Întoarce elementul din colecția corespunzătoare numelui specificat.

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

Parameters

name string

Numele elementului.

Returns

Element

Elementul corespunzător

Vezi și

IEnumerable , IEnumerable , IDisposable

 Română