Adds some text to the current run.
Name | Type | Description |
sText | string | The text which will be added to the current run. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); var oRun = Api.CreateRun(); oRun.AddText("This is just a sample text. Nothing special."); oParagraph.AddElement(oRun); builder.SaveFile("docx", "AddText.docx"); builder.CloseFile();