## OptionCollection class

The OptionElements represents a wrapper that is associated with the IHTMLOptionsCollection

```java
public class OptionCollection : IEnumerable<OptionElement>
```

## Properties

| Name | Description |
| --- | --- |
| [getCount](../../com.aspose.html.forms/optioncollection/count/) The number of Option in the list. |
| [getItem](../../com.aspose.html.forms/optioncollection/item/) Gets the [`OptionElement`](../optionelement/) at the specified index. |

## Methods

| Name | Description |
| --- | --- |
| [add](../../com.aspose.html.forms/optioncollection/add/)() | Add new option. |
| [getEnumerator](../../com.aspose.html.forms/optioncollection/getenumerator/)() | Returns an enumerator that iterates through the collection. |
| [remove](../../com.aspose.html.forms/optioncollection/remove/)(OptionElement) | Remove the option from list. |

### See Also

* class [OptionElement](../optionelement/)
* package [com.aspose.html.forms](../../com.aspose.html.forms/)
* package [Aspose.HTML](../../)
