Back to Devexpress

PdfFormFieldFacade.Type Property

officefileapi-devexpress-dot-pdf-dot-pdfformfieldfacade-f5a2c03a.md

latest2.6 KB
Original Source

PdfFormFieldFacade.Type Property

Gets the form field type.

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public abstract PdfFormFieldType Type { get; }
vb
Public MustOverride ReadOnly Property Type As PdfFormFieldType

Property Value

TypeDescription
PdfFormFieldType

An enumeration value that indicates the form field type.

|

Available values:

NameDescription
Unknown

Unknown type.

| | Node |

Base field in a field group.

| | PushButton |

Push button.

| | CheckBox |

Check box.

| | RadioGroup |

Radio group.

| | ListBox |

List box.

| | ComboBox |

Combo box.

| | Text |

Text form field.

| | Signature |

Signature form field.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Type property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

pdf-document-api-change-pdf-form-field-parameters/CS/pdf-form-fields/Program.cs#L90

csharp
//Change border style for text form fields:
if (field.Type == PdfFormFieldType.Text)
{

pdf-document-api-change-pdf-form-field-parameters/VB/pdf-form-fields/Program.vb#L68

vb
'Change border style for text form fields:
If field.Type = PdfFormFieldType.Text Then
    pdfWidget.BorderStyle = PdfBorderStyle.Underline

See Also

PdfFormFieldFacade Class

PdfFormFieldFacade Members

DevExpress.Pdf Namespace