Interface IHTMLOptionsCollection
Namespace: Aspose.Html
Assembly: Aspose.HTML.dll (25.2.0)
An HTMLOptionsCollection
is a list of nodes representing HTML
option element. An individual node may be accessed by either ordinal
index or the node’s name
or id
attributes.
Collections in the HTML DOM are assumed to be live meaning that they are
automatically updated when the underlying document is changed.
See also the Document object Model (DOM) Level 2 HTML Specification. @since DOM Level 2
[DOMObject]
[ComVisible(true)]
[DOMName("HTMLOptionsCollection")]
public interface IHTMLOptionsCollection : IEnumerable<element>, IEnumerable
Implements
IEnumerable<element>, IEnumerable
Properties
Length
The number of nodes in the list.
[DOMName("length")]
int Length { get; }
Property Value
this[string]
Returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null.
Element this[string name] { get; }
Property Value
this[int]
Method returns the indexth item in the collection. If index is greater than or equal to the number of nodes in the list, this returns null. http://www.w3.org/TR/DOM-Level-2-HTML/html.html#HTMLOptionsCollection-namedItem
[DOMName("item")]
Element this[int index] { get; }
Property Value
Methods
NamedItem(string)
Method returns the indexth item in the collection. http://www.w3.org/TR/DOM-Level-2-HTML/html.html#HTMLOptionsCollection-namedItem
[DOMName("namedItem")]
Element NamedItem(string name)
Parameters
name
string
The element name.
Returns
Returns node. </element>