Skip to main content

ContentControlProperties

The content control properties.

Properties

NameTypeDescription
AliasstringThe alias attribute.
AppearancenumberDefines if the content control is shown as the bounding box (1) or not (2).
BorderObjectThe border properties.
Border.ColorColorThe border color in RGBA format.
ColorColorThe color for the current content control in RGBA format.
IdstringA unique identifier of the content control. It can be used to search for a certain content control and make reference to it in the code.
InternalIdstringA unique internal identifier of the content control.
LockContentControlLockA value that defines if it is possible to delete and/or edit the content control or not.
PlaceHolderTextstringThe content control placeholder text.
ShdObjectThe background shading properties.
Shd.ColorColorThe shading color in RGBA format.
TagstringA tag assigned to the content control. The same tag can be assigned to several content controls so that it is possible to make reference to them in the code.

Type

Object

Example

let contentControlPr = {
"Id" : 7,
"Tag" : "{tag}",
"Lock" : 0
};
window.Asc.plugin.executeMethod ("AddContentControl", [1, contentControlPr]);