Revision Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Attributes
Remarks
The Revision object is a member of the Revisions collection. The Revisions collection includes all the revision marks in a range or document.
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.
The Add method isn't available for the Revisions collection. Revision objects are added when change tracking is enabled. Set the TrackRevisions property to True to track revisions made to the document text.
Properties
Application |
Returns a Application object that represents the Microsoft Word application. |
Author |
Returns the name of the user who made the specified tracked change. |
Cells |
Returns a Cells collection that represents the table cells that have been marked with revision marks. Read-only. |
Creator |
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 |
Returns an Integer that represents the position of an item in a collection. |
MovedRange |
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 |
Returns a Range object that represents the portion of a document that's contained in the specified object. |
Style |
Returns a Style object that represents the style associated with the current author for revisions. |
Type |
Returns the revision type. |
Methods
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. |