FormEditor.AddListItem

AddListItem(string, string)

تضيف عنصرًا جديدًا إلى مربع القائمة.

public void AddListItem(string fieldName, string itemName)
ParameterTypeDescription
fieldNameStringاسم الحقل الذي سيتم إضافة عنصر جديد إليه.
itemNameStringاسم العنصر الجديد.

Examples

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

See Also


AddListItem(string, string[])

أضف عنصرًا جديدًا بقيمة تصدير إلى حقل مربع القائمة الموجود، فقط لحقل مربع الجمع في AcroForm.

public void AddListItem(string fieldName, string[] exportName)
ParameterTypeDescription
fieldNameStringاسم الحقل الذي ستتم إضافة العناصر إليه.
exportNameString[]مصفوفة سلسلة تشير إلى عنصر قائمة جديد مع قيمة تصدير، أي (تسمية العنصر، قيمة التصدير).

Examples

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

See Also