Get Started
Documentation

CreateInlineLvlSdt

CreateInlineLvlSdt() → { ApiInlineLvlSdt }

Create a new inline container

Parameters:

This method doesn't have any parameters.

Returns:

Type
ApiInlineLvlSdt

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oParagraph = oDocument.GetElement(0);
oInlineLvlSdt = Api.CreateInlineLvlSdt();
oParagraph.AddInlineLvlSdt(oInlineLvlSdt);
oRun = Api.CreateRun();
oRun.AddText("This is an inline text content control.");
oInlineLvlSdt.AddElement(oRun, 0);
builder.SaveFile("docx", "CreateInlineLvlSdt.docx");
builder.CloseFile();

Resulting document