Object Model Reference : Classes : D : Document : Methods : Document.SaveSettings |
Sub SaveSettings([Tag As String])
Member of Document
The SaveSettings method saves the properties to the internal stack. You can specify a tag for the saved values. The tag can be used to retrieve specific settings saved earlier.
You can use the SaveSettings method to preserve current document settings such as the values of the following document properties: CurvePrecision, DrawingOriginX, DrawingOriginY, ReferencePoint, Unit, PreserveSelection, ShapeEnumDirection, and ApplyToDuplicate.
Parameter
|
Description
|
Tag
|
Specifies the control whose value you want to preserve. Users can change the tag description to suit their needs. This parameter is optional.
|
The following VBA example restores the document units to feet. The settings saved by the second SaveSettings method are discarded.
Sub Test() |
With ActiveDocument |
.Unit = cdrFoot |
.SaveSettings "Settings1" |
.Unit = cdrMillimeter |
.SaveSettings "Settings2" |
.Unit = cdrAgate |
.RestoreSettings "Settings1" |
End With |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.