public class OptionCollection extends Object implements com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<OptionElement>
The OptionElements represents a wrapper that is associated with the IHTMLOptionsCollection
Constructor and Description |
---|
OptionCollection(HTMLElement element,
com.aspose.html.collections.LiveHTMLCollection options)
Initializes a new instance of the
OptionCollection class. |
Modifier and Type | Method and Description |
---|---|
OptionElement |
add()
Add new option.
|
OptionElement |
get_Item(int index)
Gets the
OptionElement at the specified index. |
int |
getCount()
The number of Option in the list.
|
com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerator<OptionElement> |
iterator()
Returns an enumerator that iterates through the collection.
|
void |
remove(OptionElement option)
Remove the option from list.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public OptionCollection(HTMLElement element, com.aspose.html.collections.LiveHTMLCollection options)
Initializes a new instance of the OptionCollection
class.
element
- The HTMLSelectElement.options
- The options collection.public int getCount()
The number of Option in the list.
public OptionElement add()
Add new option.
public void remove(OptionElement option)
Remove the option from list.
option
- The OptionElement.public com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerator<OptionElement> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.html.internal.ms.System.Collections.Generic.IGenericEnumerable<OptionElement>
iterator
in interface com.aspose.html.internal.ms.System.Collections.IEnumerable<OptionElement>
iterator
in interface Iterable<OptionElement>
public OptionElement get_Item(int index)
Gets the OptionElement
at the specified index.
index
- The index.OptionElement
.