WindowTop 属性

       

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

expression.WindowTop

expression   必需。返回“Applies To”列表中的一个对象的表达式。

说明

使用 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