查找工作表内形状的绝对位置

Shape.getLeftToCorner() 和 Shape.getTopToCorner() 属性的说明

此屏幕截图解释了距离Shape.getLeftToCorner()Shape.getTopToCorner()属性测量。

如何测量绝对位置

待办事项:图像_替代_文本

以下示例代码显示工作表中第一个形状的绝对位置(以像素为单位)。该代码在控制台中显示以下输出:

Absolute Position of this Shape is (320, 180)