FormChoiceField Class
- Namespace
TXTextControl.DocumentServer. PDF. AcroForms
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXDocumentServer.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXDocumentServer.from the setup.dll
- Inherits
- Form
Field - Form
Choice Field
- Form
- Derived
- Form
Combo Box
Description
The FormChoiceField class implements the base class for Adobe PDF AcroForms form choice fields.
Syntax
public class FormChoiceField : FormFieldPublic Class FormChoiceField
Inherits FormFieldExamples
The following example creates a Form Choice Field instance and configures its can edit setting for a document workflow.
TXTextControl.DocumentServer.PDF.AcroForms.FormChoiceField formChoiceField = new(new TXTextControl.DocumentServer.PDF.AcroForms.FormField());
formChoiceField.CanEdit = true;Dim formChoiceField As New TXTextControl.DocumentServer.PDF.AcroForms.FormChoiceField(New TXTextControl.DocumentServer.PDF.AcroForms.FormField())
formChoiceField.CanEdit = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| FormChoiceField | Initializes a new instance of the FormChoiceField class. |
| FormField | Initializes a new instance of the FormField class. (Inherited from AcroForms.FormField.) |
Properties
| Property | Description |
|---|---|
| AlternateFieldName | Gets or sets the alternate field name of the field. (Inherited from AcroForms.FormField.) |
| Bounds | Gets or sets the rectangle bounds of the form field in the document. (Inherited from AcroForms.FormField.) |
| CanEdit | Specifies whether a field can be edited. |
| CommitOnSelChange | Specifies whether the form is submitted when the selected is changed. |
| DoNotSpellCheck | Specifies whether spell checking is enabled or not. |
| FieldName | Gets or sets the name of the field. (Inherited from AcroForms.FormField.) |
| FieldType | Gets or sets the type of the field. (Inherited from AcroForms.FormField.) |
| MultiSelect | Specifies whether multiple options can be selected. |
| Options | Gets or sets the option elements of a choice field. |
| Sort | Specifies whether the list can be sorted. |
| Value | Gets or sets the selected value of a choice list. |