# CheckFormField Class

> The CheckFormField class represents a checkbox in a document. The checkbox can be checked or unchecked through the end-user.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Inherits:** `TXTextControl.TextField` › `TXTextControl.FormField`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > CheckFormField Class
- **1095 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/llms-full.txt

---

### Description

The CheckFormField class represents a checkbox in a document. The checkbox can be checked or unchecked through the end-user.

### Syntax

```csharp
public class CheckFormField : FormField
```

```vbnet
Public Class CheckFormField
    Inherits FormField
```

### Examples

The following example adds a terms-and-conditions check box to a form.

```csharp
CheckFormField checkFormField = new(false) { Name = "AcceptTerms" };
textControl.FormFields.Add(checkFormField);
```

```vbnet
Dim checkFormField As New CheckFormField(False) With { .Name = "AcceptTerms" }
textControl.FormFields.Add(checkFormField)
```

---

## In This Section

- [CheckFormField.Checked Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/checked-property/llms-full.txt): Gets or set a value indicating whether the checkbox is in the checked state.
- [CheckFormField.CheckedCharacter Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/checkedcharacter-property/llms-full.txt): Gets or sets the character which is used to display the checkbox in the checked state.
- [CheckFormField Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/constructor/llms-full.txt): Initializes a new instance of the CheckFormField class.
- [CheckFormField.DefaultCheckedCharacter Field](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/defaultcheckedcharacter-field/llms-full.txt): Represents the default character which is used to display the checkbox in the checked state.
- [CheckFormField.DefaultUncheckedCharacter Field](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/defaultuncheckedcharacter-field/llms-full.txt): Represents the default character which is used to display the checkbox in the unchecked state.
- [CheckFormField.SupportedCheckedCharacters Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/supportedcheckedcharacters-property/llms-full.txt): Gets possible characters which can be used to display the checkbox in the checked state. The characters depend on the font used to display the text field.
- [CheckFormField.SupportedUncheckedCharacters Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/supporteduncheckedcharacters-property/llms-full.txt): Gets possible characters which can be used to display the checkbox in the unchecked state. The characters depend on the font used to display the text field.
- [CheckFormField.UncheckedCharacter Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/uncheckedcharacter-property/llms-full.txt): Gets or sets the character which is used to display the checkbox in the unchecked state.

---

## Nearby

- **Previous:** [CapitalizationSettings Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/capitalizationsettings/enumeration/llms-full.txt)
- **Next:** [CheckFormField.Checked Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/checkformfield/checked-property/llms-full.txt)
