FormEditor.AddListItem

AddListItem(string, string)

Adds new item to the list box.

public void AddListItem(string fieldName, string itemName)
ParameterTypeDescription
fieldNameStringName of the field ot which new item will be added.
itemNameStringName if new item.

Examples

FormEditor formEditor = new FormEditor("PdfForm.pdf", PdfForm_out.pdf");
formEditor.AddListItem("listBoxField", "Item 4 (New Item)");

See Also


AddListItem(string, string[])

Add a new item with Export value to the existing list box field, only for AcroForm combo box field.

public void AddListItem(string fieldName, string[] exportName)
ParameterTypeDescription
fieldNameStringName of field to which items will be added.
exportNameString[]A string array denoting a new list item with Export Value, i.e. (Item Label, Export Value).

Examples

FormEditor fe = new FormEditor("PdfForm.pdf", "FormEditor_AddListItem2.pdf");
fe.AddListItem("listboxField", new string[] { "4", "Item4(Added)" });

See Also