## OptionCollection class

The OptionElements represents a wrapper that is associated with the IHTMLOptionsCollection

```csharp
public class OptionCollection : IEnumerable<OptionElement>
```

## Properties

| Name | Description |
| --- | --- |
| [Count](../../aspose.html.forms/optioncollection/count/) { get; } | The number of Option in the list. |
| [Item](../../aspose.html.forms/optioncollection/item/) { get; } | Gets the [`OptionElement`](../optionelement/) at the specified index. |

## Methods

| Name | Description |
| --- | --- |
| [Add](../../aspose.html.forms/optioncollection/add/)() | Add new option. |
| [GetEnumerator](../../aspose.html.forms/optioncollection/getenumerator/)() | Returns an enumerator that iterates through the collection. |
| [Remove](../../aspose.html.forms/optioncollection/remove/)(*[OptionElement](../optionelement/)*) | Remove the option from list. |

### See Also

* class [OptionElement](../optionelement/)
* namespace [Aspose.Html.Forms](../../aspose.html.forms/)
* assembly [Aspose.HTML](../../)
