Previous Document Next Document

Object Model Reference : Classes : V : View : Properties : View.UsePage


View.UsePage

Property UsePage As Boolean

Description

Member of View

The UsePage property returns or specifies whether to revert to a page when switching between views.

If the UsePage property is set to True, the page associated with the view appears in the drawing window when the view is activated. If the property is set to False, the view’s page does not appear when the view is active.

VBA example

The following VBA example creates five pages and adds a view for each page. The zoom is incremented by 10 for each page, and the UsePage property is set to False.

Sub Test()
 Dim Vw As View
 Dim VwCollection As Views
 Dim intCounter As Integer
 Set VwCollection = ActiveDocument.Views
  For intCounter = 1 To 5
   ActiveDocument.AddPages (1)
   Set Vw = VwCollection.AddActiveView("TestView" & intCounter)
   Vw.Zoom = CDbl(intCounter * 10)
   Vw.UsePage = False
  Next intCounter
 Set Vw = Nothing
 Set VwCollection = Nothing
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.