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]

컬렉션에서 인덱스 번째 항목을 반환합니다. 인덱스가 목록의 노드 수보다 크거나 같으면 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>

 한국어