Skip to main content
A newer version of this page is available. .
.NET Standard 2.0+

PdfFormData.GetFieldNames() Method

Returns the name of all fields contained in this PDF form.

Namespace: DevExpress.Pdf

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

Declaration

public IList<string> GetFieldNames()

Returns

Type Description
IList<String>

A list of String values.

Example

The following example demonstrates how to obtain a list of current fields in a PDF Form via the PdfFormData.GetFieldNames method.

' Load a document with an interactive form.
Using documentProcessor As New PdfDocumentProcessor()
    documentProcessor.LoadDocument(filePath & fileName & ".pdf")

    ' Get names of interactive form fields.
    Dim formData As PdfFormData = documentProcessor.GetFormData()
    Dim names As IList(Of String) = formData.GetFieldNames()

    ' Show the field names in the rich text box.
    Dim strings(names.Count - 1) As String
    names.CopyTo(strings, 0)
    richTextBox1.Lines = strings
End Using

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

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.

See Also