DocumentVersions

A collection of DocumentVersion objects.

Properties

The following table lists properties along with their access and descriptions.

Property

Access

Description

Application

R/O

Application. The Application object.

Count

R/O

Long. The number of objects in this collection.

_NewEnum

R/O

Enumeration object. Implements IEnumVARIANT. For Windows only.

Parent

R/O

Document object. The Document object that owns this collection.

Methods

DocumentVersion Add()

Creates a new version for the document represented by the DocumentVersions collection. The new version is returned. Creating a new version copies the document's information (file) for the new version. Modifying the new version will not change any previous versions.

DocumentVersion Item(VARIANT Index)

DEFAULT. Returns the DocumentVersion object located at the given Index in the collection. Index may be a Long, or a string that represents a Long. Valid indexes are 1 through Count inclusive. Throws an exception if the Index is outside of this range.

Remarks

A DocumentVersions collection is refreshed when its parent object is refreshed. When a DocumentVersions collection is refreshed, it updates the DocumentVersion objects in the collection, but it does not recursively refresh the DocumentVersion objects themselves.