Back to Devexpress

PdfAcroFormListBoxField Class

officefileapi-devexpress-dot-pdf-eb3d93f4.md

latest3.1 KB
Original Source

PdfAcroFormListBoxField Class

Represents a list box field.

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public class PdfAcroFormListBoxField :
    PdfAcroFormChoiceField
vb
Public Class PdfAcroFormListBoxField
    Inherits PdfAcroFormChoiceField

The following members return PdfAcroFormListBoxField objects:

Remarks

To create a list box field, call the PdfAcroFormField.CreateListBox method with the specified the field name, page number, and field rectangle.

To add values to the list box, call one of the PdfAcroFormChoiceField.AddValue overloaded methods.

You can also specify the list box field properties, for example, list box name, tooltip and appearance using PdfAcroFormField.Name, PdfAcroFormField.ToolTip, and PdfAcroFormVisualField.Appearance properties.

To select an item of the list box by its export value, call the PdfAcroFormChoiceField.SelectValue method using this value.

To add list box fields to a document, pass an array of PdfAcroFormListBoxField objects as a parameter to the PdfDocumentProcessor.AddFormFields method.

To delete a form field from a document using a field name, call the PdfDocumentProcessor.RemoveFormField method.

To delete all interactive elements from a document, call the PdfDocumentProcessor.RemoveForm method.

Inheritance

Object PdfAcroFormField PdfAcroFormVisualField PdfAcroFormCommonVisualField PdfAcroFormChoiceField PdfAcroFormListBoxField

See Also

PdfAcroFormListBoxField Members

DevExpress.Pdf Namespace