Revisions 接口

定义

对象的集合 Revision ,这些对象代表在某一区域或文档中带有修订标记的更改。A collection of Revision objects that represent the changes marked with revision marks in a range or document.

public interface class Revisions : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020980-0000-0000-C000-000000000046")]
public interface Revisions : System.Collections.IEnumerable
type Revisions = interface
    interface IEnumerable
Public Interface Revisions
Implements IEnumerable
属性
实现

注解

使用或对象的修订属性 Document Range 返回修订集合。Use the Revisions property of a Document or Range object to return the Revisions collection.

Add 方法对 Revisions 集合无效。The Add method isn't available for the Revisions collection. 在启用修订功能时,将添加 修订 对象。Revision objects are added when change tracking is enabled. 将该 TrackRevisions 属性设置为True可跟踪对文档文本所做的修订。Set the TrackRevisions property to True to track revisions made to the document text.

使用修订index ),其中 index 是索引号,返回单个修订对象。Use Revisions(index), where index is the index number, to return a single Revision object. 索引号代表修订的范围或文档中的位置。The index number represents the position of the revision in the range or document.

Count在文档中,此集合的属性返回的只是正文中的项目数。The Count property for this collection in a document returns the number of items in the main story only. 要统计其他部分中的个数,请使用带有 Range 对象的集合。To count items in other stories use the collection with the Range object.

属性

Application

返回一个 Application 代表 Microsoft Word 应用程序的对象。Returns a Application object that represents the Microsoft Word application.

Count

返回指定集合中的项目数。Returns the number of items in the specified collection.

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Int32]

返回集合中的单个对象。Returns an individual object in a collection.

Parent

返回一个对象,代表指定对象的父对象。Returns an object that represents the parent object of the specified object.

方法

AcceptAll()

接受文档或区域中的所有修订。Accepts all the tracked changes in a document or range. 将删除修订标记,并将更改合并到文档中。The revision marks are removed, and the changes are incorporated into the document.

GetEnumerator()
RejectAll()

拒绝某一区域中的所有修订。Rejects all the tracked changes in a range. 将删除修订标记,不改变原文。The revision marks are removed, leaving the original text intact.

适用于