PdfListBoxFormFieldFacade.Values Property
In This Article
Gets or sets list box values—currently selected list box item names.
Namespace: DevExpress.Pdf
Assembly: DevExpress.Pdf.v24.2.Core.dll
NuGet Package: DevExpress.Pdf.Core
#Declaration
#Property Value
Type | Description |
---|---|
IList<String> | A list of list box item names. |
#Remarks
The code sample below specifies the list box value:
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 };}
See Also