/// <summary>
 /// Gets a list of all form fields
 /// </summary>
 /// <returns></returns>
 public Field[] GetFields()
 {
     ElementList nl = SelectElements(typeof(Field));
     Field[] fields = new Field[nl.Count];
     int i = 0;
     foreach (Element e in nl)
     {
         fields[i] = (Field)e;
         i++;
     }
     return fields;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="field"></param>
 public Field AddField(Field field)
 {
     AddChild(field);
     return field;
 }
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 public Field AddField()
 {
     Field f = new Field();
     AddChild(f);
     return f;
 }