AddCheckBoxContentControl
Adds a new checkbox content control to the document.
Syntax
expression.AddCheckBoxContentControl(checkBoxPr);
expression - A variable that represents a ApiDocument class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| checkBoxPr | Required | ContentControlCheckBoxPr | The configuration object for the checkbox. |
Returns
Example
Add a checkbox content control to a document.
// How do I insert a checkbox content control in a document?
// Embed a pre-checked checkbox field to capture boolean input in a document.
let doc = Api.GetDocument();
doc.AddCheckBoxContentControl({checked : true});