# CheckFormField Constructor

> Initializes a new instance of the CheckFormField class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > CheckFormField Constructor
- **364 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/constructor/llms-full.txt

---

### Description

Initializes a new instance of the CheckFormField class.

### Syntax

```csharp
public CheckFormField(bool isChecked);
```

```vbnet
Public Sub New(isChecked As Boolean)
```

### Parameters

| Parameter | Description |
|---|---|
| isChecked | Specifies whether the checkbox is initially checked or unchecked. When this parameter is true, it is checked. |

### 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)
```

---

## Nearby

- **Previous:** [CheckFormField.CheckedCharacter Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/checkedcharacter-property/llms-full.txt)
- **Next:** [CheckFormField.DefaultCheckedCharacter Field](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/defaultcheckedcharacter-field/llms-full.txt)
