SetVertFlip
Flips the current drawing vertically.
Syntax
expression.SetVertFlip(bFlip);
expression
- A variable that represents a ApiDrawing class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
bFlip | Required | boolean | Specifies if the figure will be flipped vertically or not. |
Returns
boolean
Example
This example flips the drawing vertically.
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);
drawing.SetVertFlip(true);