Class HTMLCollection
Class HTMLCollection
名称: Aspose.Html.Collections 编辑: Aspose.HTML.dll (25.4.0)
Aspose.Html.Collections.HTMLCollection 代表了 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
继承人
DOMObject.GetPlatformType() , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
HTML 收藏()
protected HTMLCollection()
Properties
Length
列表中的节点数量。
[DOMName("length")]
public abstract int Length { get; }
财产价值
这个[因特]
如果指数大于或等于列表中的节点数量,则将返回零。
[DOMName("item")]
public abstract Element this[int index] { get; }
财产价值
Methods
GetEnumerator()
接到列表。
public abstract IEnumerator<element> GetEnumerator()
Returns
IEnumerator < Element >
一个 System.Collections.IEnumerator 对象,可以用来通过收藏进行 iterate。
GetPlatformType()
此方法用于获取 ECMAScript 对象 System.Type。
public override Type GetPlatformType()
Returns
ECMAScript 对象 System.Type。
NamedItem(线条)
返回相匹配的收藏中的项目指定名称。
[DOMNullable]
[DOMName("namedItem")]
public Element NamedItem(string name)
Parameters
name
string
元素名称。
Returns
相匹配的元素