.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

PdfAcroFormComboBoxField Class

Represents a combo box field.

Namespace: DevExpress.Pdf

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

Declaration

public class PdfAcroFormComboBoxField :
    PdfAcroFormChoiceField
Public Class PdfAcroFormComboBoxField
    Inherits PdfAcroFormChoiceField
public class PdfAcroFormComboBoxField :
    PdfAcroFormChoiceField
Public Class PdfAcroFormComboBoxField
    Inherits PdfAcroFormChoiceField
public class PdfAcroFormComboBoxField :
    PdfAcroFormChoiceField
Public Class PdfAcroFormComboBoxField
    Inherits PdfAcroFormChoiceField

Remarks

To create a combo box field, call the PdfAcroFormField.CreateComboBox method with a specified the field name, page number where the field will be added and field rectangle.

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

You can specify the combo box name, tooltip and appearance using PdfAcroFormField.Name, PdfAcroFormField.ToolTip, PdfAcroFormVisualField.Appearance properties.

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

To add combo box fields to a document, pass an array of PdfAcroFormComboBoxField 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.

See Also