---
title: "RadioButtonOptionField"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf/radiobuttonoptionfield/"
product: "Aspose.PDF for Java API Reference"
description: "Class represents item of RadioButton field."
---

**Inheritance:**
java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.RadioButtonOptionField, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.RadioButtonOptionField, com.aspose.pdf.Annotation, com.aspose.pdf.WidgetAnnotation com.aspose.pdf.Field com.aspose.pdf.RadioButtonOptionField, com.aspose.pdf.WidgetAnnotation, com.aspose.pdf.Field com.aspose.pdf.RadioButtonOptionField, com.aspose.pdf.Field, com.aspose.pdf.RadioButtonOptionField

**All Implemented Interfaces:**
com.aspose.ms.System.Collections.Generic.IGenericEnumerable< WidgetAnnotation >, com.aspose.ms.System.Collections.IEnumerable< WidgetAnnotation >, com.aspose.ms.System.ICloneable, Cloneable, Iterable < WidgetAnnotation >

```
public final class RadioButtonOptionField extends Field
```

Class represents item of RadioButton field.

## Constructors

| Constructor | Description |
| --- | --- |
| [RadioButtonOptionField](#RadioButtonOptionField--) | Create new RadioButtonOptionField instance. |
| [RadioButtonOptionField](#RadioButtonOptionField-com.aspose.pdf.Page-com.aspose.pdf.Rectangle-) | Create new RadioButtonOptionField instance. |

## Methods

| Method | Description |
| --- | --- |
| [getCaption](#getCaption--) | Gets caption. |
| [getOptionName](#getOptionName--) | Gets name of the option. |
| [getStyle](#getStyle--) | Gets style of check box. |
| [setCaption](#setCaption-com.aspose.pdf.TextFragment-) | Sets caption. |
| [setOptionName](#setOptionName-java.lang.String-) | Sets name of the option. |
| [setStyle](#setStyle-com.aspose.pdf.BoxStyle-) | Sets style of check box. |

### RadioButtonOptionField {#RadioButtonOptionField--}
```
public RadioButtonOptionField()
```

Create new RadioButtonOptionField instance.

### RadioButtonOptionField {#RadioButtonOptionField-com.aspose.pdf.Page-com.aspose.pdf.Rectangle-}
Create new RadioButtonOptionField instance.

### getCaption {#getCaption--}
```
public TextFragment getCaption()
```

Gets caption.

**Returns:**
TextFragment object

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

Gets name of the option.

**Returns:**
String value

### getStyle {#getStyle--}
```
public BoxStyle getStyle()
```

Gets style of check box.

**Returns:**
BoxStyle element @see BoxStyle

### setCaption {#setCaption-com.aspose.pdf.TextFragment-}
Sets caption.

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

### setStyle {#setStyle-com.aspose.pdf.BoxStyle-}
Sets style of check box.
