• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class ChoiceField

Abstract base for choice fields (spec §12.7.3.3). Choice fields present a list of options from which the user selects. The two concrete subtypes are DropdownField (combo box) and ListBoxField (scrollable list).

Inheritance
object
FormField
VariableTextField
ChoiceField
DropdownField
ListBoxField
Inherited Members
VariableTextField.DefaultValue
VariableTextField.Justification
VariableTextField.TextAppearance
FormField.Name
FormField.Value
FormField.FieldType
FormField.Tooltip
FormField.IsRequired
FormField.Page
FormField.Rect
FormField.Appearance
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Pdf.Forms
Assembly: DRIT.Pdf.dll
Syntax
public abstract class ChoiceField : VariableTextField

Properties

CommitOnSelectionChange

When true the new value is committed as soon as a selection is made (spec §12.7.3.3, field flag bit 27 — CommitOnSelChange).

Declaration
public bool CommitOnSelectionChange { get; set; }
Property Value
Type Description
bool

Items

The ordered list of options presented to the user (spec §12.7.3.3, /Opt entry). Each option may carry distinct export and display values.

Declaration
public ChoiceOptionCollection Items { get; }
Property Value
Type Description
ChoiceOptionCollection

Sort

When true the options are sorted alphabetically before display (spec §12.7.3.3, field flag bit 20 — Sort).

Declaration
public bool Sort { get; set; }
Property Value
Type Description
bool
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX