AddContentControl
Adds an empty content control to the document.
Syntax
expression.AddContentControl(type, commonPr);
expression
- A variable that represents a Api class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
type | Required | ContentControlType | A numeric value that specifies the content control type. It can have one of the following values: -1 (block), -2 (inline), -3 (row), or -4 (cell). | |
commonPr | Optional | ContentControlProperties | {} | The common content control properties. |
Returns
Example
window.Asc.plugin.executeMethod ("AddContentControl", [1, {"Id" : 7, "Tag" : "{tag}", "Lock" : 0}]);