Edit

Bagikan melalui


Revisions Interface

Definition

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
Attributes
Implements

Remarks

Use the Revisions property of a Document or Range object to return the Revisions collection.

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.

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 Count property for this collection in a document returns the number of items in the main story only. To count items in other stories use the collection with the Range object.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Count

Returns the number of items in the specified collection.

Creator

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.

Methods

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.

Applies to