WindowLeft 属性

返回 Integer 值,指定以缇单位窗体或报表的左边缘相对 Microsoft Access 窗口左边缘的屏幕位置。只读。

expression.WindowLeft

expression     必需。返回“应用于”列表中的一个对象的表达式。

说明

使用 Move 方法可以更改窗体或报表的位置。

示例

下面的示例返回当前项目中第一个窗体的顶端和左边缘的屏幕位置。

With Forms(0)

    MsgBox "The form is " & .WindowLeft _

        & " twips from the left edge of the Access window and " _

        & .WindowTop _

        & " twips from the top edge of the Access window."

End With