CreateRun
Create a new smaller text block to be inserted to the current paragraph or table.
Parameters:
This method doesn't have any parameters.
Returns:
- Type
-
ApiRun
Example
Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oParagraph = oDocument.GetElement(0);
oDocument = Api.GetDocument();
oRun = Api.CreateRun();
oRun.AddText("This is a text run");
oParagraph.AddElement(oRun);
builder.SaveFile("docx", "CreateRun.docx");
builder.CloseFile();
Resulting document