In the scope of the bug fix, we have added the Values property to the PdfListBoxFormFieldFacade class. Use this property to specify multiple values for the list box form field.
The code sample below demonstrates how to specify multiple list box form field values:
C#using (PdfDocumentProcessor pdfDocumentProcessor = new PdfDocumentProcessor())
{
pdfDocumentProcessor.LoadDocument("Documents//FormDemo.pdf");
PdfDocumentFacade documentFacade = pdfDocumentProcessor.DocumentFacade;
PdfAcroFormFacade acroForm = documentFacade.AcroForm;
PdfListBoxFormFieldFacade listField = acroForm.GetListBoxFormField("List");
listField.Values = new List<string>()
{
listField.Items[2].Value, listField.Items[4].Value, listField.Items[5].Value
};
}
We made changes in the base PdfChoiceFormFieldFacade<T> class to introduce this functionality. Please refer to the following Breaking Change for more information on the PdfChoiceFormFieldFacade<T> class changes: T1032641 - The PdfChoiceFormFieldFacade class and its descendants were changed | DevExpress Support