TX Text Control .NET for Windows Forms

DefaultUncheckedCharacter Field

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

Description

Represents the default character which is used to display the checkbox in the unchecked state.

Syntax

public const char DefaultUncheckedCharacter = '☐';

Examples

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

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

Console.WriteLine($"Default Unchecked Character: {CheckFormField.DefaultUncheckedCharacter}");
Console.WriteLine("Check Form Field is ready for use.");