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

```
public final class Option extends Object
```

Class represents option of choice field.

## Methods

| Method | Description |
| --- | --- |
| [getIndex](#getIndex--) | Gets index of the option. |
| [getName](#getName--) | Gets name of option. |
| [getSelected](#getSelected--) | Gets selected status of option. Returns true if option is selected. |
| [getValue](#getValue--) | Gets option export value. |
| [hasExportValue](#hasExportValue--) | Return true if has Export Value |
| [setName](#setName-java.lang.String-) | Sets name of option. |
| [setSelected](#setSelected-boolean-) | Sets selected status of option. Returns true if option is selected. |
| [setValue](#setValue-java.lang.String-) | Sets option export value. |

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

Gets index of the option.

**Returns:**
int value

### getName {#getName--}
```
public String getName()
```

Gets name of option.

**Returns:**
String value

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

Gets selected status of option. Returns true if option is selected.

**Returns:**
boolean value

### getValue {#getValue--}
```
public String getValue()
```

Gets option export value.

**Returns:**
String value

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

Return true if has Export Value

**Returns:**
boolean value

### setName {#setName-java.lang.String-}
Sets name of option.

### setSelected {#setSelected-boolean-}
```
public void setSelected(boolean value)
```

Sets selected status of option. Returns true if option is selected.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  | boolean value |

### setValue {#setValue-java.lang.String-}
Sets option export value.
