skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class FormFieldCollection

Represents a collection of interactive form fields within a PDF document, providing methods to add, remove, and access various types of form fields such as text boxes, checkboxes, and buttons.

Inheritance
System.Object
FormFieldCollection
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Windows.Documents.Fixed.Model.InteractiveForms
Assembly: Telerik.Windows.Documents.Fixed.dll

Syntax

public class FormFieldCollection : IEnumerable<FormField>, IEnumerable

Properties

Count

Gets the count of the fields in the collection.

Declaration
public int Count { get; }
Property Value
System.Int32

Item[String]

Gets the form field with the specified name from the collection.

Declaration
public FormField this[string fieldName] { get; }
Parameters
System.String fieldName

The unique name of the form field to retrieve.

Property Value
FormField

The form field with the specified name.

Exceptions
System.Collections.Generic.KeyNotFoundException

Thrown when no field with the specified name exists in the collection.

Methods

Add(FormField)

Adds field to the collection.

Declaration
public void Add(FormField field)
Parameters
FormField field

The field to be added.

AddCheckBox(String)

Creates a new checkbox field with the specified name and adds it to the collection.

Declaration
public CheckBoxField AddCheckBox(string fieldName)
Parameters
System.String fieldName

The unique name for the new checkbox field.

Returns
CheckBoxField

The newly created and added checkbox field.

AddComboBox(String)

Creates a new combo box field with the specified name and adds it to the collection.

Declaration
public ComboBoxField AddComboBox(string fieldName)
Parameters
System.String fieldName

The unique name for the new combo box field.

Returns
ComboBoxField

The newly created and added combo box field.

AddCombTextBox(String)

Creates a new comb text box field with the specified name and adds it to the collection.

Declaration
public CombTextBoxField AddCombTextBox(string fieldName)
Parameters
System.String fieldName

The unique name for the new comb text box field.

Returns
CombTextBoxField

The newly created and added comb text box field.

AddListBox(String)

Creates a new list box field with the specified name and adds it to the collection.

Declaration
public ListBoxField AddListBox(string fieldName)
Parameters
System.String fieldName

The unique name for the new list box field.

Returns
ListBoxField

The newly created and added list box field.

AddPushButton(String)

Creates a new push button field with the specified name and adds it to the collection.

Declaration
public PushButtonField AddPushButton(string fieldName)
Parameters
System.String fieldName

The unique name for the new push button field.

Returns
PushButtonField

The newly created and added push button field.

AddRadioButton(String)

Creates a new radio button field with the specified name and adds it to the collection.

Declaration
public RadioButtonField AddRadioButton(string fieldName)
Parameters
System.String fieldName

The unique name for the new radio button field.

Returns
RadioButtonField

The newly created and added radio button field.

AddSignature(String)

Creates a new signature field with the specified name and adds it to the collection.

Declaration
public SignatureField AddSignature(string fieldName)
Parameters
System.String fieldName

The unique name for the new signature field.

Returns
SignatureField

The newly created and added signature field.

AddTextBox(String)

Creates a new text box field with the specified name and adds it to the collection.

Declaration
public TextBoxField AddTextBox(string fieldName)
Parameters
System.String fieldName

The unique name for the new text box field.

Returns
TextBoxField

The newly created and added text box field.

Contains(String)

Determines whether this instance contains the object.

Declaration
public bool Contains(string fieldName)
Parameters
System.String fieldName

Name of the field.

Returns
System.Boolean

true if a field with the specified name exists; otherwise, false.

GetEnumerator()

Gets the enumerator for the elements in the collection.

Declaration
public IEnumerator<FormField> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<FormField>

The enumerator.

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

Remove(FormField)

Removes the specified form field from the collection and cleans up its event subscriptions.

Declaration
public void Remove(FormField field)
Parameters
FormField field

The form field to remove from the collection.

Rename(String, String)

Renames a form field from an old name to a new name, ensuring the new name is unique and follows naming conventions.

Declaration
public void Rename(string oldName, string newName)
Parameters
System.String oldName

The current name of the field to rename.

System.String newName

The new name to assign to the field.

Exceptions
System.ArgumentException

Thrown when the old name or new name is null or empty, when no field with the old name exists, when the new name is already used by another field, or when the new name contains a period character.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets the enumerator for the elements in the collection.

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

An enumerator that can be used to iterate through the form fields in the collection.

Implements
System.Collections.IEnumerable.GetEnumerator()
Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.