Revision 接口

定义

代表由修订标记所标记的修改。Represents a change marked with a revision mark.

public interface class Revision
[System.Runtime.InteropServices.Guid("00020981-0000-0000-C000-000000000046")]
public interface Revision
type Revision = interface
Public Interface Revision
属性

注解

修订对象是集合的一个成员 RevisionsThe Revision object is a member of the Revisions collection. Revisions 集合包含某范围或文档中的所有修订标记。The Revisions collection includes all the revision marks in a range or document.

使用修订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.

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.

属性

Application

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

Author

返回指定的修订的用户的名称。Returns the name of the user who made the specified tracked change.

Cells

返回一个 Cells 集合,该集合代表已用修订标记进行标记的表格单元格。Returns a Cells collection that represents the table cells that have been marked with revision marks. 只读。Read-only.

Creator

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

Date

修订的日期和时间。The date and time that the tracked change was made.

FormatDescription

修订过程中,返回一个表示说明的 字符串 跟踪格式设置更改。Returns a String representing a description of tracked formatting changes in a revision.

Index

返回一个Integer类型的值,该值代表项目在集合中的位置。Returns an Integer that represents the position of an item in a collection.

MovedRange

返回一个 Range 对象,表示从一个位置移动到另一个包含修订的文档中的文本范围。Returns a Range object that represents a range of text that was moved from one place to another in a document with tracked changes. 只读。Read-only.

Parent

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

Range

返回一个 Range object 类型的对象,该对象代表指定对象中包含的文档部分。Returns a Range object that represents the portion of a document that's contained in the specified object.

Style

返回一个 Style 对象,表示与当前的修订作者相关联的样式。Returns a Style object that represents the style associated with the current author for revisions.

Type

返回修订的类型。Returns the revision type.

方法

Accept()

接受指定的跟踪更改。Accepts the specified tracked change. 将删除修订标记,并将更改合并到文档中。The revision marks are removed, and the change is incorporated into the document.

Reject()

拒绝接受指定的修订。Rejects the specified tracked change. 将删除修订标记,不改变原文。The revision marks are removed, leaving the original text intact.

适用于