Type Property
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the type of the field.
Syntax
public FormText.FormTextBoxType Type { get; set; }Public Property Type As FormText.FormTextBoxTypeMembers
| Value | Description |
|---|---|
| RegularText | Regular text is allowed. |
| Number | Only numeric values are allowed. |
| Date | A valid date format is allowed. |
| CurrentDate | The current date will be inserted. |
| CurrentTime | The current time will be inserted. |
| Calculation | A calculation is allowed. |
Examples
The following example uses FormText.Type to configure type as part of the form text workflow. The configured value is checked before the workflow continues.
formText.Type = TXTextControl.DocumentServer.Fields.FormText.FormTextBoxType.RegularText;
Console.WriteLine($"Type used by Form Text: {formText.Type}");formText.Type = TXTextControl.DocumentServer.Fields.FormText.FormTextBoxType.RegularText
Console.WriteLine($"Type used by Form Text: {formText.Type}")Limitations
This property is not used by the DocumentServer.Web.DocumentViewer component.