Pushes a paragraph or a table or a block content control to actually add it to the current container.
Name | Type | Description |
oElement | DocumentElement | The type of the element which will be pushed to the current container. |
builder.CreateFile("docx"); 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); builder.SaveFile("docx", "Push.docx"); builder.CloseFile();