FormFieldType Property

Returns the form field type.

Namespace:  Aspose.Words.Fields
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public FieldType Type { get; }

Property Value

Type: FieldType
Examples
Shows how to work with form field name, type, and result.
Document doc = new Document(MyDir + "Form fields.docx");

FormField formField = doc.Range.FormFields[3];

if (formField.Type.Equals(FieldType.FieldFormTextInput))
    formField.Result = "My name is " + formField.Name;
See Also