Click or drag to resize
Pdftools logo

ChoiceFieldAddNewItem Method

Creates a new choice item. The item is automatically added to the choice field's Items.

Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.Forms
Assembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.1+cd45f416896d630bcd3719f4b2cba7920f2790da
Syntax
C#
public ChoiceItem AddNewItem(
	string displayName
)

Parameters

displayName  String
this item's display name

Return Value

ChoiceItem
the newly created choice item
Exceptions
ExceptionCondition
InvalidOperationExceptionif the object has already been closed
InvalidOperationExceptionif the form field has widgets
NotSupportedExceptionthe document is read-only
See Also