AddText
function AddText(sText: string = null): void
Description
Adds some text to the current run.
Parameters
- sText
string
null The text which will be added to the current run.
Returns
void
Try It
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);