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

Document.Pages 属性 (发布服务器)Document.Pages Property (Publisher)

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

返回一个Pages集合,代表指定出版物中的所有页面。Returns a Pages collection representing all the pages in the specified publication.

语法Syntax

表达式页面expression. Pages

_expression_A 表示一个文档对象的变量。_expression_A variable that represents a Document object.

示例Example

下面的示例返回活动出版物的Pages集合,并报告有多少个页面。The following example returns the Pages collection of the active publication and reports how many pages there are.

Dim pgsTemp As Pages 

Set pgsTemp = ActiveDocument.Pages 

With pgsTemp 
 MsgBox "There are " &; .Count _ 
 &; " page(s) in the active publication." 
End With
© 2018 Microsoft