Skip to main content

AddCheckBoxContentControl

Adds a new checkbox content control to the document.

Syntax

expression.AddCheckBoxContentControl(checkBoxPr);

expression - A variable that represents a ApiDocument class.

Parameters

NameRequired/OptionalData typeDefaultDescription
checkBoxPrRequiredContentControlCheckBoxPrThe configuration object for the checkbox.

Returns

ApiInlineLvlSdt

Example

Add a checkbox content control to a document: in a document.

// How to add the check box content control for a document?

// Add the check box content control and display the result in a document.

let doc = Api.GetDocument();
doc.AddCheckBoxContentControl({checked : true});