# CheckBoxField Class

The `CheckBoxField` class corresponds to the `FormFieldType.CheckBox` enum value and represents a box that can be checked or unchecked.

## Properties

`CheckBoxField` provides the following properties:

| Property             | Description                                                                                                                                                                                                                    |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `IsChecked`          | Gets or sets a value indicating whether the field is checked.                                                                                                                                                                  |
| `IsCheckedByDefault` | Gets or sets the default field value used when the [AcroForm](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/interactive-forms/acroform) is reset to its default values. |
| `Widgets`            | The collection of Widget annotations representing the field on the PDF pages. You can add widgets with `AddWidget()` and remove them with `Remove()`. Implements `IEnumerable`.                                                |
| `ExportValue`        | Gets or sets the value of the field when exporting the interactive form. The default export value is `"Yes"`.                                                                                                                  |

**Create a CheckBoxField and add it to a page**

```C#
CheckBoxField checkBoxField = new CheckBoxField("SampleCheckBox");
checkBoxField.IsChecked = true;

TwoStatesButtonWidget widget = checkBoxField.Widgets.AddWidget();
widget.Rect = new Rect(100, 100, 20, 20);
widget.RecalculateContent();

document.AcroForm.FormFields.Add(checkBoxField);
document.Pages[0].Annotations.Add(widget);
```

## See Also

* [Form Field](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/interactive-forms/form-fields/formfields)
* [PDF Annotation Widgets](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/annotations/widgets)
* [RadioButtonField Class](https://www.telerik.com/document-processing-libraries/documentation/libraries/radpdfprocessing/model/interactive-forms/form-fields/radiobuttonfield)
* [Create Interactive Forms SDK example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/CreateInteractiveForms)
* [Modifying Forms SDK example](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/ModifyForms)
