# CheckFormField.Checked Property

> Gets or set a value indicating whether the checkbox is in the checked state.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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.Checked Property
- **470 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/checked-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/checked-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/checkformfield/checked-property/llms-full.txt

---

### Description

Gets or set a value indicating whether the checkbox is in the checked state.

### Syntax

```csharp
public bool Checked { get; set; }
```

```vbnet
Public Property Checked As Boolean
```

### Examples

The following example adds a terms-and-conditions check box to a form by using `CheckFormField.Checked`.

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

checkFormField.Checked = true;
if (checkFormField.Checked)
{
    Console.WriteLine("Check Form Field: Checked is enabled.");
}
```

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

checkFormField.Checked = True
If checkFormField.Checked Then
    Console.WriteLine("Check Form Field: Checked is enabled.")
End If
```

---

## Nearby

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