TX Text Control .NET for WPF

FormChoiceField Class

Class|Introduced in 29.0
Namespace
TXTextControl.DocumentServer.PDF.AcroForms
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Inherits
  1. FormField
  2. FormChoiceField
Derived
FormComboBox

Description

The FormChoiceField class implements the base class for Adobe PDF AcroForms form choice fields.

Syntax

public class FormChoiceField : FormField

Examples

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;

Members

Constructors

ConstructorDescription
FormChoiceFieldInitializes a new instance of the FormChoiceField class.
FormFieldInitializes a new instance of the FormField class. (Inherited from AcroForms.FormField.)

Properties

PropertyDescription
AlternateFieldNameGets or sets the alternate field name of the field. (Inherited from AcroForms.FormField.)
BoundsGets or sets the rectangle bounds of the form field in the document. (Inherited from AcroForms.FormField.)
CanEditSpecifies whether a field can be edited.
CommitOnSelChangeSpecifies whether the form is submitted when the selected is changed.
DoNotSpellCheckSpecifies whether spell checking is enabled or not.
FieldNameGets or sets the name of the field. (Inherited from AcroForms.FormField.)
FieldTypeGets or sets the type of the field. (Inherited from AcroForms.FormField.)
MultiSelectSpecifies whether multiple options can be selected.
OptionsGets or sets the option elements of a choice field.
SortSpecifies whether the list can be sorted.
ValueGets or sets the selected value of a choice list.