**Inheritance:**
java.lang.Object, com.aspose.pdf.OptionCollection

**All Implemented Interfaces:**
Iterable < Option >

```
public final class OptionCollection extends Object implements Iterable < Option >
```

Class representing collection of options of the choice field.

## Methods

| Method | Description |
| --- | --- |
| [add](#add-com.aspose.pdf.Option-) | Adds item in collection, throws . Not implemented yet. |
| [clear](#clear--) | Removes all items from collection. |
| [contains](#contains-com.aspose.pdf.Option-) | Checks if item exists in collection, throws . Not implemented yet. |
| [deleteOption](#deleteOption-java.lang.String-) | Deletes option by its name. |
| [get_Item](#get_Item-int-) | Gets option by index. |
| [get_Item](#get_Item-java.lang.String-) | Gets option by its name. |
| [get](#get-int-) | Gets option by index. |
| [get](#get-java.lang.String-) | Gets option from collection by option name. |
| [getSyncRoot](#getSyncRoot--) | Synchronization object of the collection. |
| [isReadOnly](#isReadOnly--) | Gets a value indicating if collection is readonly. |
| [isSynchronized](#isSynchronized--) | Returns true of object is synchronized. |
| [iterator_Rename_Namesake](#iterator_Rename_Namesake--) | Returns enumerator for options in collection. |
| [iterator](#iterator--) | Returns enumerator for options in collection. |
| [remove](#remove-com.aspose.pdf.Option-) | Removes item from collection, throws . Not implemented yet. |
| [size](#size--) | Gets number of options. |

### add {#add-com.aspose.pdf.Option-}
Adds item in collection, throws . Not implemented yet.

### clear {#clear--}
```
public void clear()
```

Removes all items from collection.

### contains {#contains-com.aspose.pdf.Option-}
Checks if item exists in collection, throws . Not implemented yet.

### deleteOption {#deleteOption-java.lang.String-}
Deletes option by its name.

### get_Item {#get_Item-int-}
```
public Option get_Item(int index)
```

Gets option by index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index |  | Index of the option. |

**Returns:**
Option on the specified index.

### get_Item {#get_Item-java.lang.String-}
Gets option by its name.

### get {#get-int-}
```
public Option get(int index)
```

Gets option by index.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index |  | Option index. Index should be in range [1..n] where n is options count. |

**Returns:**
Retrieved option.

### get {#get-java.lang.String-}
Gets option from collection by option name.

### getSyncRoot {#getSyncRoot--}
```
public Object getSyncRoot()
```

Synchronization object of the collection.

**Returns:**
Object element

### isReadOnly {#isReadOnly--}
```
public boolean isReadOnly()
```

Gets a value indicating if collection is readonly.

**Returns:**
boolean value

### isSynchronized {#isSynchronized--}
```
public boolean isSynchronized()
```

Returns true of object is synchronized.

**Returns:**
boolean value

### iterator_Rename_Namesake {#iterator_Rename_Namesake--}
```
public com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()
```

Returns enumerator for options in collection.

**Returns:**
Options enumerator.

### iterator {#iterator--}
```
public com.aspose.ms.System.Collections.IEnumerator< Option > iterator()
```

Returns enumerator for options in collection.

**Returns:**
Options enumerator.

### remove {#remove-com.aspose.pdf.Option-}
Removes item from collection, throws . Not implemented yet.

### size {#size--}
```
public int size()
```

Gets number of options.

**Returns:**
int value
