public class FieldFormCheckBox extends Field
To learn more, visit the Working with Fields documentation article.
Remarks:
Inserts a check box style form field.
Examples:
Shows how to process FORMCHECKBOX, FORMDROPDOWN and FORMTEXT fields.
// These fields are legacy equivalents of the FormField. We can read, but not create these fields using Aspose.Words.
// In Microsoft Word, we can insert these fields via the Legacy Tools menu in the Developer tab.
Document doc = new Document(getMyDir() + "Form fields.docx");
FieldFormCheckBox fieldFormCheckBox = (FieldFormCheckBox) doc.getRange().getFields().get(1);
Assert.assertEquals(" FORMCHECKBOX ", fieldFormCheckBox.getFieldCode());
FieldFormDropDown fieldFormDropDown = (FieldFormDropDown) doc.getRange().getFields().get(2);
Assert.assertEquals(" FORMDROPDOWN ", fieldFormDropDown.getFieldCode());
FieldFormText fieldFormText = (FieldFormText) doc.getRange().getFields().get(0);
Assert.assertEquals(" FORMTEXT ", fieldFormText.getFieldCode());
getDisplayResult, getEnd, getFieldCode, getFieldCode, getFormat, getLocaleId, getResult, getSeparator, getStart, getType, isDirty, isDirty, isLocked, isLocked, needStoreOldResultNodes, remove, setLocaleId, setResult, unlink, update, update