Class HTMLCollection

Class HTMLCollection

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

ה-Aspose.Html.Collections.HTMLCollection מייצגת אוסף גנרי של Aspose.Html.Dom.Element.

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

ירושה

objectDOMObjectHTMLCollection

מיישם

INotifyPropertyChanged, IEnumerable<element>, IEnumerable

חברים שירשו

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

בונים

HTMLCollection()

protected HTMLCollection()

מאפיינים

Length

מספר הצמתים ברשימה.

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

ערך המאפיין

int

this[int]

מחזיר את הפריט ה-index ברשימה. אם ה-index גדול או שווה למספר הצמתים ברשימה, זה מחזיר null.

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

ערך המאפיין

Element

שיטות

GetEnumerator()

מקבל את המונה.

public abstract IEnumerator<element> GetEnumerator()

מחזיר

IEnumerator<Element&gt;

אובייקט מסוג System.Collections.IEnumerator שניתן להשתמש בו כדי לעבור על האוסף.

GetPlatformType()

שיטה זו משמשת כדי להשיג אובייקט ECMAScript מסוג System.Type.

public override Type GetPlatformType()

מחזיר

Type

אובייקט ECMAScript מסוג System.Type.

NamedItem(string)

מחזיר את הפריט באוסף התואם את השם המוגדר.

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

פרמטרים

name string

שם האלמנט.

מחזיר

Element

האלמנט התואם

ראה גם

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

 Ελληνικά