Skip to main content

SetHorFlip

Flips the current drawing horizontally.

Inherited from ApiDrawing.SetHorFlip.

Example

Flips the drawing horizontally in a document.

// How to set the horizontal flip property of the shape in a document.

// Create a drawing, add text to it and flip it horizontally in a document.

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("cube", 3212465, 963295, fill, stroke);
paragraph.AddDrawing(drawing);
drawing.SetHorFlip(true);