PdfChoiceFieldOptions Class
The attributes of a choice field created by PdfInteractiveForm.AddComboBox or PdfInteractiveForm.AddListBox.
public sealed class PdfChoiceFieldOptions : PdfFormFieldOptions- Inheritance
PdfFormFieldOptionsPdfChoiceFieldOptions
Constructors
| Name | Description |
|---|---|
| PdfChoiceFieldOptions() |
PdfChoiceFieldOptions()
public PdfChoiceFieldOptions()No documentation is available.
Properties
| Name | Description |
|---|---|
| Alignment | Gets or sets the alignment of the text: left, centered or right. The default is PdfTextAlignment.Left. |
| IsEditable | Gets or sets a value indicating whether a combo box also accepts a text that is not an option. |
| IsMultiSelect | Gets or sets a value indicating whether several options of a list box can be chosen. |
| SelectedValues | Gets or sets the chosen values: export values of options, or a text for an editable combo box. Several values need PdfChoiceFieldOptions.IsMultiSelect. |
Alignment
PdfChoiceFieldOptions.csGets or sets the alignment of the text: left, centered or right. The default is PdfTextAlignment.Left.
public PdfTextAlignment Alignment { get; set; }Property value
IsEditable
PdfChoiceFieldOptions.csIsMultiSelect
PdfChoiceFieldOptions.csSelectedValues
PdfChoiceFieldOptions.csGets or sets the chosen values: export values of options, or a text for an editable combo box. Several values need PdfChoiceFieldOptions.IsMultiSelect.
public IReadOnlyList<string>? SelectedValues { get; set; }