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

MasterPages.Item 属性 (发布服务器)MasterPages.Item Property (Publisher)

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

页面MasterPages集合中返回指定的对象。只读的。Returns the specified Page object from a Pages or MasterPages collection. Read-only.

语法Syntax

表达式项目expression. Item( Item)

_expression_A 表示MasterPages对象的变量。_expression_A variable that represents a MasterPages object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
ItemItem必需RequiredLongLong要返回的页的数目。MasterPages集合的项可以是 1 或 2 的左、 右主页面,分别。对于页面集合,项对应于一个Page对象PageIndex属性。The number of the page to return. For MasterPages collections, Item can either be 1 or 2 for the left and right master pages, respectively. For Pages collections, Item corresponds to a Page object's PageIndex property.

示例Example

本示例显示活动出版物中第一页的页码、页索引和页标识。This example displays the page number, page index, and page ID of the first page in the active publication.

With ActiveDocument.Pages.Item(1) 
 Debug.Print "Page number = " &; .PageNumber 
 Debug.Print "Page index = " &; .PageIndex 
 Debug.Print "Page ID = " &; .PageID 
End With
© 2018 Microsoft