Skip to main content
.NET Framework 4.5.2+

PdfFormData.GetFieldNames() Method

Returns the child field names for a particular tree node.

Namespace: DevExpress.Pdf

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

NuGet Package: DevExpress.Pdf.Core

Declaration

public IList<string> GetFieldNames()

Returns

Type Description
IList<String>

A list of child field names for a particular tree node.

Example

The following example demonstrates how to obtain a list of current fields in a PDF Form:

View Example

// Load a document with an interactive form.
using (PdfDocumentProcessor documentProcessor = new PdfDocumentProcessor()) {
    documentProcessor.LoadDocument(filePath + fileName + ".pdf");

    // Get names of interactive form fields.
    PdfFormData formData = documentProcessor.GetFormData();
    IList<string> names = formData.GetFieldNames();

    // Show the field names in the rich text box.
    string[] strings = new string[names.Count];
    names.CopyTo(strings, 0);
    richTextBox1.Lines = strings;
}

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