Adds text to the current content control.
Name | Type | Description |
sText | String | The text which will be added to the content control. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); var oInlineLvlSdt = Api.CreateInlineLvlSdt(); oInlineLvlSdt.AddText("This is an inline text content control."); oParagraph.AddInlineLvlSdt(oInlineLvlSdt); builder.SaveFile("docx", "AddText.docx"); builder.CloseFile();