跳到主要内容

AddContentControlDatePicker

向文档添加空的内容控件日期选择器。

语法

expression.AddContentControlDatePicker(datePickerPr, commonPr);

expression - 表示 Api 类的变量。

参数

名称必需/可选数据类型默认值描述
datePickerPr可选ContentControlDatePickerProperties{}内容控件日期选择器属性。
commonPr可选ContentControlProperties{}通用内容控件属性。

返回值

此方法不返回任何数据。

示例

window.Asc.plugin.executeMethod ("AddContentControlDatePicker", [
{
"DateFormat" : "DD\ MMMM\ YYYY",
"Date" : new window.Date()
},
{
"Id" : 7,
"Tag" : "{tag}",
"Lock" : 0
}
]);