AddBreak
Inserts a break at the specified location in the main document.
Inherited from ApiDrawing.AddBreak.
Example
Insert a break at the specified location in the main document.
// How to add some space from the drawing in a document.
// Insert a drawing and text into document and add a break to them.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let fill = Api.CreateSolidFill(Api.RGB(255, 111, 61));
let stroke = Api.CreateStroke(0, Api.CreateNoFill());
let drawing = Api.CreateShape("rect", 3212465, 963295, fill, stroke);
paragraph.AddDrawing(drawing);
drawing.InsertParagraph("Added a line break after this paragraph.", "before", false);
drawing.AddBreak(1, "before");