CreateParagraph
Creates a new paragraph.
Syntax
expression.CreateParagraph();
expression
- A variable that represents a Api class.
Parameters
This method doesn't have any parameters.
Returns
Example
This example creates a new paragraph and inserts it into the document.
let doc = Api.GetDocument();
let paragraph = Api.CreateParagraph();
paragraph.AddText("This is a new paragraph");
doc.Push(paragraph);