PdfChoiceFieldOptions Class

The attributes of a choice field created by PdfInteractiveForm.AddComboBox or PdfInteractiveForm.AddListBox.

public sealed class PdfChoiceFieldOptions : PdfFormFieldOptions
Inheritance
PdfFormFieldOptions PdfChoiceFieldOptions

Constructors

NameDescription
PdfChoiceFieldOptions()

PdfChoiceFieldOptions()

public PdfChoiceFieldOptions()

No documentation is available.

Properties

NameDescription
AlignmentGets or sets the alignment of the text: left, centered or right. The default is PdfTextAlignment.Left.
IsEditableGets or sets a value indicating whether a combo box also accepts a text that is not an option.
IsMultiSelectGets or sets a value indicating whether several options of a list box can be chosen.
SelectedValuesGets or sets the chosen values: export values of options, or a text for an editable combo box. Several values need PdfChoiceFieldOptions.IsMultiSelect.

Gets or sets the alignment of the text: left, centered or right. The default is PdfTextAlignment.Left.

public PdfTextAlignment Alignment { get; set; }

Property value

PdfTextAlignment

Gets or sets a value indicating whether a combo box also accepts a text that is not an option.

public bool IsEditable { get; set; }

Property value

bool

Gets or sets a value indicating whether several options of a list box can be chosen.

public bool IsMultiSelect { get; set; }

Property value

bool

Gets 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; }