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
継承
object ← DOMObject ← HTMLCollection
実装
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; }
プロパティ値
this[int]
コレクション内のインデックス-thアイテムを返します。インデックスがリスト内のノード数以上の場合、nullを返します。
[DOMName("item")]
public abstract Element this[int index] { get; }
プロパティ値
メソッド
GetEnumerator()
列挙子を取得します。
public abstract IEnumerator<element> GetEnumerator()
戻り値
IEnumerator<Element>
コレクションを反復処理するために使用できるSystem.Collections.IEnumeratorオブジェクト。
GetPlatformType()
このメソッドは、ECMAScriptオブジェクトSystem.Typeを取得するために使用されます。
public override Type GetPlatformType()
戻り値
ECMAScriptオブジェクトSystem.Type。
NamedItem(string)
指定された名前に一致するコレクション内のアイテムを返します。
[DOMName("namedItem")]
[DOMNullable]
public Element NamedItem(string name)
パラメーター
name
string
要素名。
戻り値
一致した要素。
参照
IEnumerable<t>, IEnumerable<t>, IDisposable </t></t></element>