AddContentControl

function AddContentControl(type: ContentControlType, commonPr: ContentControlProperties = {}): ContentControl

Description

Adds an empty content control to the document.

Parameters

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).

commonPrContentControlPropertiesdefault: {}

The common content control properties.

Returns

ContentControl

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).