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

Plate.Index 属性 (发布服务器)Plate.Index Property (Publisher)

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

返回一个Long ,该值代表指定集合中的特定项的位置。.Returns a Long that represents the position of a particular item in a specified collection. .

语法Syntax

表达式索引expression. Index

_expression_A 变量表示一个印版_expression_A variable that represents a Plate object.

示例Example

下面的示例循环遍历MailMergeDataFields集合,并显示每个字段的索引名称属性。The following example loops through the MailMergeDataFields collection and displays the Index and Name properties for each field.

Dim mmfLoop As MailMergeDataField 

With ActiveDocument.MailMerge.DataSource 
 If .DataFields.Count > 0 Then 
 For Each mmfLoop In .DataFields 
 Debug.Print "Field " &; mmfLoop.Name _ 
 &; " / Index " &; mmfLoop.Index 
 Next mmfLoop 
 Else 
 Debug.Print "No fields to report." 
 End If 
End With

下面的示例循环遍历印版集合,并显示每个印版的索引名称属性。The following example loops through the Plates collection and displays the Index and Name properties for each plate.

Dim plaLoop As Plate 

If ActiveDocument.Plates.Count > 0 Then 
 For Each plaLoop In ActiveDocument.Plates 
 Debug.Print "Plate " &; plaLoop.Name _ 
 &; " / Index " &; plaLoop.Index 
 Next plaLoop 
Else 
 Debug.Print "No plates to report." 
End If
© 2018 Microsoft