GetFieldType

Form.GetFieldType method

Returns type of field.

public FieldType GetFieldType(string fieldName)
Parameter Type Description
fieldName String Field name.

Return Value

Element of FileType enumeration corresponding to field type.

Examples

Form form = new Form("PdfForm.pdf");
if (form.GetFieldType("textField") == FieldType.Text)
{
   Console.WriteLine("Type of field is text");
}

See Also