Skip to main content
All docs
V22.2
.NET Framework 4.5.2+

PdfListBoxFormFieldFacade.Values Property

Gets or sets list box values—currently selected list box item names.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v22.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

Declaration

public IList<string> Values { get; set; }

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