Method AddListBox
AddListBox(string, PdfPage, XRect, IEnumerable<string>, PdfFormFieldStyle?)
Adds a list box with the given options, none selected. Set the MultiSelect flag on the returned field to allow several selections.
public PdfFormListBoxField AddListBox(string name, PdfPage page, XRect rectangle, IEnumerable<string> options, PdfFormFieldStyle? style = null)
Parameters
namestringpagePdfPagerectangleXRectoptionsIEnumerable<string>stylePdfFormFieldStyle
Returns
Exceptions
- InvalidOperationException
The document is PDF/A: the field's Helvetica is not embedded.