CheckFormField Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Initializes a new instance of the CheckFormField class.
Syntax
public CheckFormField(bool isChecked);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.
CheckFormField checkFormField = new(false) { Name = "AcceptTerms" };
textControl.FormFields.Add(checkFormField);Dim checkFormField As New CheckFormField(False) With { .Name = "AcceptTerms" }
textControl.FormFields.Add(checkFormField)