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.Toolbox.Pdf.Forms
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
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