Get Started
Plugins
Macros
More information

window.Asc.plugin.executeMethod ("RemoveContentControl", callback)

Description

Defines the method that allows removing the currently selected content control retaining all its contents. The content control where the mouse cursor is currently positioned will be removed.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("RemoveContentControl");
Returns

The method returns the undefined value.

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