Skip to main content

GetFlipV

Get vertical flip of current drawing.

Inherited from ApiDrawing.GetFlipV.

Syntax​

expression.GetFlipV();

expression - A variable that represents an ApiSmartArt class.

Parameters​

This method doesn't have any parameters.

Returns​

boolean | null

Example​

Determine whether a shape is flipped top-to-bottom on a page in a PDF form.

// Read the vertical flip state of a shape after applying a mirror transform.

// Create a shape, flip it vertically, then read and display the flip state.

const doc = Api.GetDocument();
const page = doc.GetPage(0);
const fill = Api.CreateSolidFill(Api.RGB(255, 111, 61));
const stroke = Api.CreateStroke(0, Api.CreateNoFill());
const shape = Api.CreateShape("upArrow", 60 * 36000, 120 * 36000, fill, stroke);
shape.SetPosition(20 * 36000, 20 * 36000);
page.AddObject(shape);
shape.SetFlipV(true);
const flip = shape.GetFlipV();
const paragraph = shape.GetContent().GetElement(0);
paragraph.AddText("Drawing is flipped vertically: " + flip);