Table of Contents

Method AddListBox

Namespace
PdfSharp.Pdf.Forms
Assembly
PdfSharp.dll

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

name string
page PdfPage
rectangle XRect
options IEnumerable<string>
style PdfFormFieldStyle

Returns

PdfFormListBoxField

Exceptions

InvalidOperationException

The document is PDF/A: the field's Helvetica is not embedded.