Field.Previous 属性 (Word)Field.Previous property (Word)

返回集合中的上一个对象。Returns the previous object in the collection. 只读。Read-only.

语法Syntax

expressionexpression. Previous

_表达式_代表字段对象的变量。expression A variable that represents a 'Field' object.

示例Example

以下示例显示活动文档中倒数第二个域的域代码。This example displays the field code of the second-to-last field in the active document.

Set aField = ActiveDocument _ 
 .Fields(ActiveDocument.Fields.Count).Previous 
MsgBox "Field code = " & aField.Code

另请参阅See also

Field 对象Field Object