跳到主要内容

RemoveContentControl

删除当前选定的内容控件,同时保留其所有内容。将删除鼠标光标当前所在位置的内容控件。

语法

expression.RemoveContentControl(InternalId);

expression - 表示 Api 类的变量。

参数

名称必需/可选数据类型默认值描述
InternalId必需string内容控件的唯一内部标识符。

返回值

ContentControlParentPr

示例

window.buttonIDChangeState_click = undefined;
if (null == returnValue) {
window.Asc.plugin.executeMethod ("AddContentControl", [1, {"Id" : 7, "Lock" : 0, "Tag" : "{some text}"}]);
}
else {
window.Asc.plugin.executeMethod ("RemoveContentControl", [returnValue]);
}