Method InsertCheckBoxFormField
InsertCheckBoxFormField(WordDocument, DocumentPosition, CheckBoxFormFieldOptions?)
Inserts a check-box form field at a position, inside a bookmark of its name.
public static DocumentEdit InsertCheckBoxFormField(this WordDocument document, DocumentPosition at, CheckBoxFormFieldOptions? options = null)
Parameters
documentWordDocumentThe document that holds the position.
atDocumentPositionWhere to insert.
optionsCheckBoxFormFieldOptionsThe name, the size, the default state and the shared options; null for Word's defaults.
Returns
- DocumentEdit
The edit; After is just past the field.
Exceptions
- ArgumentNullException
documentis null.- ArgumentException
The position is not in the document, or an option is refused (a size outside 1 to 1584 points among them).