GetNextDrawing
Returns the next inline drawing object if exists.
Syntax
expression.GetNextDrawing();
expression
- A variable that represents a ApiDrawing class.
Parameters
This method doesn't have any parameters.
Returns
ApiDrawing | null
Example
This example shows how to get the next inline drawing object if exists.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
let fill = Api.CreateSolidFill(Api.CreateRGBColor(255, 111, 61));
let stroke = Api.CreateStroke(0, Api.CreateNoFill());
let drawing = Api.CreateShape("cube", 3212465, 963295, fill, stroke);
paragraph.AddDrawing(drawing);
let copyDrawing = drawing.Copy();
paragraph.AddDrawing(copyDrawing);
let nextDrawing = drawing.GetNextDrawing();
nextDrawing.SetHorFlip(true);