FormEditorAddListItem Method (String, String)
Add a new item with Export value to the existing list box field, only for AcroForm combo box field.

Namespace: Aspose.Pdf.Facades
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 19.11
Syntax
public void AddListItem(
	string fieldName,
	string[] exportName
)

Parameters

fieldName
Type: SystemString
Name of field to which items will be added.
exportName
Type: SystemString
A string array denoting a new list item with Export Value, i.e. (Item Label, Export Value).
Examples
C#
FormEditor fe = new FormEditor("PdfForm.pdf", "FormEditor_AddListItem2.pdf");
fe.AddListItem("listboxField", new string[] { "4", "Item4(Added)" });
See Also