RemoveContentControl
Removes the currently selected content control retaining all its contents. The content control where the mouse cursor is currently positioned will be removed.
Parameters:
Name |
Type |
Description |
InternalId |
string
|
A unique internal identifier of the content control. |
Returns:
- Type
-
ContentControlParentPr
Example
Copy code
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]);
}