跳到主要内容

RemoveContentControl

Removes the currently selected content control retaining all its contents. The content control where the mouse cursor is currently positioned will be removed.

Syntax

expression.RemoveContentControl(InternalId);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
InternalIdRequiredstringA unique internal identifier of the content control.

Returns

ContentControlParentPr

Example

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