TX Text Control .NET Server

CheckFormField Constructor

Constructor|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Initializes a new instance of the CheckFormField class.

Syntax

public CheckFormField(bool isChecked);

Parameters

ParameterDescription
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.

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