Get Started
Documentation

CreateInlineLvlSdt

CreateInlineLvlSdt() → { ApiInlineLvlSdt }

Create a new inline container

Returns:

Type
ApiInlineLvlSdt

Example

Copy code
builder.CreateFile("docx");
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
var oInlineLvlSdt = Api.CreateInlineLvlSdt();
oParagraph.AddInlineLvlSdt(oInlineLvlSdt);
var 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