TX Text Control .NET for Windows Forms

CheckFormField Class

Class|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Inherits
  1. TextField
  2. FormField
  3. CheckFormField

Description

The CheckFormField class represents a checkbox in a document. The checkbox can be checked or unchecked through the end-user.

Syntax

public class CheckFormField : FormField

Examples

The following example adds a terms-and-conditions check box to a form.

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

Members

Constructors

ConstructorDescription
CheckFormFieldInitializes a new instance of the CheckFormField class.

Properties

PropertyDescription
CheckedGets or set a value indicating whether the checkbox is in the checked state.
CheckedCharacterGets or sets the character which is used to display the checkbox in the checked state.
DescriptiveTextGets or sets a descriptive text for a form field. An empty string indicates that the form field has no such text. An empty string can also be used to delete a previously set text. (Inherited from FormField.)
EnabledGets or set a value indicating whether the form field is enabled. This property has only an effect, when the when the TextControl.EditMode is set to ReadAndSelect and the DocumentPermissions.AllowEditingFormFields property has been set to true. In this case a Formfield can only be edited, when its Enabled property is true. When a FormField is disabled, the TextFieldClicked and TextFieldDoubleClicked of the Formfield are suppressed. The default value of this property is true. (Inherited from FormField.)
SupportedCheckedCharactersGets possible characters which can be used to display the checkbox in the checked state. The characters depend on the font used to display the text field.
SupportedUncheckedCharactersGets possible characters which can be used to display the checkbox in the unchecked state. The characters depend on the font used to display the text field.
UncheckedCharacterGets or sets the character which is used to display the checkbox in the unchecked state.

Methods

MethodDescription
FormFieldDialogOpens a dialog box to alter the formatting attributes of the form field. (Inherited from FormField.)

Fields

FieldDescription
DefaultCheckedCharacterRepresents the default character which is used to display the checkbox in the checked state.
DefaultUncheckedCharacterRepresents the default character which is used to display the checkbox in the unchecked state.