CreateRun
Creates a new smaller text block to be inserted to the current paragraph or table.
Syntax
expression.CreateRun();
expression
- A variable that represents a Api class.
Parameters
This method doesn't have any parameters.
Returns
Example
This example creates a run and inserts it into the document.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let run = Api.CreateRun();
run.AddText("This is a text run");
paragraph.AddElement(run);