AddListItem
Contenuti
[
Nascondere
]AddListItem(string, string)
Aggiunge un nuovo elemento alla casella di riepilogo.
public void AddListItem(string fieldName, string itemName)
Parametro | Tipo | Descrizione |
---|---|---|
fieldName | String | Nome del campo a cui verrà aggiunto il nuovo elemento. |
itemName | String | Nome se nuovo elemento. |
Esempi
FormEditor formEditor = new FormEditor("PdfForm.pdf", PdfForm_out.pdf");
formEditor.AddListItem("listBoxField", "Item 4 (New Item)");
Guarda anche
- class FormEditor
- spazio dei nomi Aspose.Pdf.Facades
- assemblea Aspose.PDF
AddListItem(string, string[])
Aggiungi un nuovo elemento con il valore Esporta al campo della casella di riepilogo esistente, solo per il campo della casella combinata AcroForm.
public void AddListItem(string fieldName, string[] exportName)
Parametro | Tipo | Descrizione |
---|---|---|
fieldName | String | Nome del campo a cui verranno aggiunti gli elementi. |
exportName | String[] | Una matrice di stringhe che denota una nuova voce di elenco con Esporta valore, ad esempio (Etichetta elemento, Esporta valore). |
Esempi
FormEditor fe = new FormEditor("PdfForm.pdf", "FormEditor_AddListItem2.pdf");
fe.AddListItem("listboxField", new string[] { "4", "Item4(Added)" });
Guarda anche
- class FormEditor
- spazio dei nomi Aspose.Pdf.Facades
- assemblea Aspose.PDF