Table of Contents

Method InsertCheckBoxFormField

Namespace
DocWright.Word.Editing
Assembly
DocWright.Word.dll

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

document WordDocument

The document that holds the position.

at DocumentPosition

Where to insert.

options CheckBoxFormFieldOptions

The 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

document is null.

ArgumentException

The position is not in the document, or an option is refused (a size outside 1 to 1584 points among them).