跳到主要内容

GetFlipV

Get vertical flip of current drawing.

Syntax

expression.GetFlipV();

expression - A variable that represents a ApiDrawing class.

Parameters

This method doesn't have any parameters.

Returns

boolean | null

Example

This example checks whether the drawing is flipped vertically.

// How to get the vertical flip property of the shape.

// Create a drawing, flip it vertically, and read its vertical flip value.

let worksheet = Api.GetActiveSheet();
let fill = Api.CreateSolidFill(Api.RGB(255, 111, 61));
let stroke = Api.CreateStroke(0, Api.CreateNoFill());
let drawing = worksheet.AddShape("cube", 60 * 36000, 35 * 36000, fill, stroke, 0, 2 * 36000, 0, 3 * 36000);
drawing.SetFlipV(true);
let flip = drawing.GetFlipV();
worksheet.SetColumnWidth(0, 25);
worksheet.GetRange("A1").SetValue("Drawing is flipped vertically: " + flip);