跳到主要内容

移除内容控件

移除当前选中的内容控件,同时保留其所有内容。鼠标光标当前所在的内容控件将被移除。

语法

expression.RemoveContentControl(InternalId);

expression - 表示 Api 类的变量。

参数

名称必填/选填数据类型默认值说明
InternalId必填string内容控件的唯一内部标识符。

返回值

内容控件父级属性

示例

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