WindowTop 屬性

此頁沒有內容條目
內容

返回 Integer 值,指定以緹為單位的窗體或報表的頂端相對 Microsoft Access 窗口頂端的屏幕位置。只讀。

expression.WindowTop

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