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; }

ค่า Property

int

this[int]

ส่งคืนรายการที่อยู่ในตำแหน่ง index หาก index มีค่ามากกว่าหรือเท่ากับจำนวนโหนดในรายการ จะส่งคืน null

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

ค่า Property

Element

วิธีการ

GetEnumerator()

รับ enumerator

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>

 แบบไทย