Previous Document Next Document
Document.RestoreSettings

Sub RestoreSettings([Tag As String])

Member of Document

The RestoreSettings method retrieves the properties saved in the internal stack using the SaveSettings method. If the Tag parameter is not specified, the last saved values are retrieved. If the tag is specified, all properties are removed from the stack until the properties with the tag is located. If a stack underflow occurs, the properties are reset to the default values in the following table.

Parameters
Description
Tag
Describes the control whose value you want to preserve. Users can change the tag description to suit their needs.
This parameter is optional.

The following code 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 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.