public class OptionCollection extends java.lang.Object implements com.aspose.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.ms.System.Collections.Generic.IGenericEnumerator<OptionElement> |
iterator()
Returns an enumerator that iterates through the collection.
|
void |
remove(OptionElement option)
Remove the option from list.
|
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.ms.System.Collections.Generic.IGenericEnumerator<OptionElement> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<OptionElement>iterator in interface com.aspose.ms.System.Collections.IEnumerable<OptionElement>iterator in interface java.lang.Iterable<OptionElement>public OptionElement get_Item(int index)
Gets the OptionElement at the specified index.
index - The index.OptionElement.