Checked Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets or set a value indicating whether the checkbox is in the checked state.
Syntax
public bool Checked { get; set; }Public Property Checked As BooleanExamples
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.");
}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