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
This example shows how to add a checkbox content control to a document:
- Code
- Result
let doc = Api.GetDocument();
doc.AddCheckBoxContentControl({checked : true});