Returns the form field type.
Namespace:
Aspose.Words.Fields
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic FieldType Type { get; }
Public ReadOnly Property Type As FieldType
Get
public:
property FieldType Type {
FieldType get ();
}
member Type : FieldType with get
Property Value
Type:
FieldType
ExamplesShows 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