跳到主要内容

AddCheckBoxContentControl

向文档添加新的复选框内容控件。

语法

expression.AddCheckBoxContentControl(checkBoxPr);

expression - 表示 ApiDocument 类的变量。

参数

名称必需/可选数据类型默认值描述
checkBoxPr必需ContentControlCheckBoxPr复选框的配置对象。

返回值

ApiInlineLvlSdt

示例

在文档中添加复选框内容控件。

// 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});