TX Text Control .NET for WPF

Checked Property

Property|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

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

Syntax

public bool Checked { get; set; }

Examples

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

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

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