应用于 Shape 和 ShapeRange 对象的 Left 属性。
返回或设置一个 Single 值,该值代表指定图形或图形区域的水平位置,以磅为单位。可取任何有效的 WdShapePosition 常量。可读写。
WdShapePosition 可以是下列 WdShapePosition 常量之一: |
WdShapeBottom |
WdShapeCenter |
WdShapeInside |
WdShapeLeft |
WdShapeOutside |
WdShapeRight |
WdShapeTop |
expression.Left
expression 必需。该表达式返回以上一个对象。
图形的位置是根据图形边框的左上角到图形锁定位置的距离来判断的。RelativeHorizontalPosition 属性控制锁定标记是放置在字符、文本栏、页边距的旁边还是页面的边缘。
对于包含多个图形的 ShapeRange 对象,Left 属性设置每个图形的水平位置。
应用于 Application、Task 和 Window 对象的 Left 属性。
返回或设置一个 Long 值,该值代表活动文档(对于 Application 对象)或指定任务或窗口的水平位置,以磅为单位。可读写。
expression.Left
expression 必需。该表达式返回以上一个对象。
本示例将活动文档中第一个图形的水平位置设置为距页面的左边缘 1 英寸。
With ActiveDocument.Shapes(1)
.RelativeHorizontalPosition = _
wdRelativeHorizontalPositionPage
.Left = InchesToPoints(1)
End With
本示例将活动文档中第一、第二个图形的水平位置设置为距离文本栏的左边缘 1 英寸。
With ActiveDocument.Shapes.Range(Array(1, 2))
.RelativeHorizontalPosition = _
wdRelativeHorizontalPositionColumn
.Left = InchesToPoints(1)
End With
本示例将活动窗口的水平位置设置为 100 磅。
With ActiveDocument.ActiveWindow
.WindowState = wdWindowStateNormal
.Left = 100
.Top = 0
End With