Versions Interface

Definition

A collection of Version objects that represent all the versions of a document. Corresponds to the items listed in the Versions dialog box (File menu).

public interface class Versions : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("000209B3-0000-0000-C000-000000000046")]
public interface Versions : System.Collections.IEnumerable
type Versions = interface
    interface IEnumerable
Public Interface Versions
Implements IEnumerable
Attributes
Implements

Remarks

Use the Versions property to return the Versions collection.

Use the Save(Object) method to add an item to the Versions collection.

Use Versions(index), where index is the index number, to return a single Version object. The index number represents the position of the version in the Versions collection. The first version added to the Versions collection is index number 1.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

AutoVersion

Returns or sets the state of the option for automatically saving document versions.

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

GetEnumerator()
Save(Object)

Saves a version of the specified document with a comment.

Applies to