Push

function Push(oElement: DocumentElement = null): boolean

Description

Pushes a paragraph or a table or a block content control to actually add it to the current container.

Parameters

oElementDocumentElementdefault: null

The type of the element which will be pushed to the current container.

Returns

boolean

Try It

var oDocument = Api.GetDocument();
var oBlockLvlSdt = Api.CreateBlockLvlSdt();
var oParagraph = Api.CreateParagraph();
oParagraph.AddText("This is a block text content control.");
oBlockLvlSdt.Push(oParagraph);
oDocument.AddElement(0, oBlockLvlSdt);

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