PageWindows 属性

       

返回指定的 PageWindowEx 对象。

expression.PageWindows

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

示例

本示例获得包含网页 Spain.htm 的网页窗口,并将视图模式设置为“预览”。

注意  若要运行本过程,必须有一个打开的站点,并且其中包含一个已打开的名为 Spain.htm 的网页,或者也可以用您所选择的文件来代替。

Private Sub SetPagePreview()
	Dim myPage As PageWindowEx

	Set myPage = ActiveWebWindow.PageWindows("Spain.htm")
	myPage.ViewMode = fpPageViewPreview
End Sub