Versions.AutoVersion Property
Returns or sets the state of the option for automatically saving document versions.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Property AutoVersion As WdAutoVersions
Get
Set
'Usage
Dim instance As Versions
Dim value As WdAutoVersions
value = instance.AutoVersion
instance.AutoVersion = value
WdAutoVersions AutoVersion { get; set; }
Property Value
Type: Microsoft.Office.Interop.Word.WdAutoVersions
Remarks
WdAutoVersions can be one of these WdAutoVersions constants:
wdAutoVersionOff
wdAutoVersionOnClose
Note When the AutoVersion property is set to wdAutoVersionOnClose, a document version is automatically saved when the document is closed.