GetFlipH
获取当前绘图的水平翻转状态。
继承自 ApiDrawing.GetFlipH。
示例
检查电子表格中的绘图对象是否水平翻转。
// How to get the horizontal flip property of the shape in a spreadsheet.
// Create a drawing and read its horizontal flip value in a spreadsheet.
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);
let flip = drawing.GetFlipH();
worksheet.SetColumnWidth(0, 25);
worksheet.GetRange("A1").SetValue("Drawing is flipped horizontally: " + flip);