AddCheckBoxContentControl
向文档添加新的复选框内容控件。
语法
expression.AddCheckBoxContentControl(checkBoxPr);
expression - 表示 ApiDocument 类的变量。
参数
| 名称 | 必需/可选 | 数据类型 | 默认值 | 描述 |
|---|---|---|---|---|
| checkBoxPr | 必需 | ContentControlCheckBoxPr | 复选框的配置对象。 |
返回值
示例
在文档中添加复选框内容控件。
// 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});