A collection of FieldData objects; empty collection if no field data is found.
Examples
Find fields by a field name:
// Get all the fields with "Address" nameIList<FieldData>addressFields=data.GetFieldsByName("Address");if(addressFields.Count==0){Console.WriteLine("Address not found");}else{Console.WriteLine("Address");// Iterate over the fields collectionfor(inti=0;i<addressFields.Count;i++){PageTextAreaarea=addressFields[i].PageAreaasPageTextArea;Console.WriteLine(area==null?"Not a template field":area.Text);// If it's a related field:if(addressFields[i].LinkedField!=null){Console.Write("Linked to ");PageTextArealinkedArea=addressFields[i].LinkedField.PageAreaasPageTextArea;Console.WriteLine(area==null?"Not a template field":area.Text);}}}
FieldData class represents field data. Depending on the field PageArea property can contain any of the inheritors of PageArea class. For example, ParseForm method extracts only text fields.