Table of contents
TOC
折叠目录
展开目录

SlideShowWindow.Top 属性 (PowerPoint)SlideShowWindow.Top Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回或设置一个值,表示应用程序窗口的工作区的上边缘到文档、 应用程序和幻灯片放映窗口的上边缘的距离,以磅为单位。读/写。Returns or sets a Single that represents the distance in points from the top edge of the document, application, and slide show window to the top edge of the application window's client area. Read/write.

语法Syntax

表达式顶部expression. Top

表达式_一个表示SlideShowWindow对象的变量。_expression A variable that represents a SlideShowWindow object.

返回值Return Value

SingleSingle

注解Remarks

将该属性设为一个很大的正值或负值会将整个窗口移出桌面。Setting this property to a very large positive or negative value may position the window completely off the desktop.

示例Example

以下示例水平排列第一个和第二个窗口。即每个窗口占据应用程序窗口用户区域的一半垂直可用空间和所有水平可用空间。要使以下示例执行,只能有两个打开的文档窗口。This example arranges windows one and two horizontally; in other words, each window occupies half the available vertical space and all the available horizontal space in the application window's client area. For this example to work, there must be only two document windows open.

Windows.Arrange ppArrangeTiled

sngHeight = Windows(1).Height                     ' available height

sngWidth = Windows(1).Width + Windows(2).Width    ' available width

With Windows(1)

    .Width = sngWidth

    .Height = sngHeight / 2

    .Left = 0

End With

With Windows(2)

    .Width = sngWidth

    .Height = sngHeight / 2

    .Top = sngHeight / 2

    .Left = 0

End With

另请参阅See also

概念Concepts

SlideShowWindow 对象SlideShowWindow Object

© 2018 Microsoft