Form.GetFieldType

Form.GetFieldType method

Returns type of field.

public FieldType GetFieldType(string fieldName)
ParameterTypeDescription
fieldNameStringField 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