语法
表达式.Left
表达式 必选。一个代表 Shape 对象的变量。
说明
形状的位置是根据形状边框的左上角到形状锁定标记的相对距离进行计算的。RelativeHorizontalPosition 属性控制锁定标记是沿字符、文本栏、页边距还是页面边缘放置。
示例
本示例将活动文档中第一个图形的水平位置设置为距页面的左边缘 1 英寸。
let shapes = ActiveDocument.Shapes.Item(1) shapes.RelativeHorizontalPosition = wdRelativeHorizontalPositionPage shapes.Left = InchesToPoints(1)