Class HTMLCollection

Class HTMLCollection

Le nom : Aspose.Html.Collections Assemblaggio: Aspose.HTML.dll (25.4.0)

Aspose.Html.Collections.HTMLCollection rappresenta una raccolta generica di 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

I membri ereditari

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

Constructors

HtmlCollections()

protected HTMLCollection()

Properties

Length

Il numero di nodi nella lista.

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

Valore di proprietà

int

Ceci[int]

Se l’indice è più grande o uguale al numero di nodi nella lista, questo ritorna zero.

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

Valore di proprietà

Element

Methods

GetEnumerator()

Riceva l’enumeratore

public abstract IEnumerator<element> GetEnumerator()

Returns

IEnumerator di < Element >

Un oggetto System.Collections.IEnumerator che può essere utilizzato per iterare attraverso la raccolta.

GetPlatformType()

Questo metodo viene utilizzato per recuperare l’oggetto ECMAScript System.Type.

public override Type GetPlatformType()

Returns

Type

L’oggetto ECMAScript System.Type.

NamedItem(Le string)

Ritorna l’articolo nella raccolta corrispondente nome specificato.

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

Parameters

name string

Il nome degli elementi.

Returns

Element

L’elemento corrispondente

Vedi anche

IEnumerable , IEnumerable , IDisposable

 Français