Get Started
Documentation

CreateBlockLvlSdt

CreateBlockLvlSdt() → { ApiBlockLvlSdt }

Create a new block level container

Parameters:

This method doesn't have any parameters.

Returns:

Type
ApiBlockLvlSdt

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oBlockLvlSdt = Api.CreateBlockLvlSdt();
oBlockLvlSdt.GetContent().GetElement(0).AddText("This is a block text content control.");
oDocument.AddElement(0, oBlockLvlSdt);
builder.SaveFile("docx", "CreateBlockLvlSdt.docx");
builder.CloseFile();

Resulting document