Table of Contents

Method AddComboBox

Namespace
PdfSharp.Pdf.Forms
Assembly
PdfSharp.dll

AddComboBox(string, PdfPage, XRect, IEnumerable<string>, PdfFormFieldStyle?)

Adds a combo box (a drop-down list) with the given options, none selected.

public PdfFormComboBoxField AddComboBox(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

PdfFormComboBoxField

Exceptions

InvalidOperationException

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