![]() |
![]() |
View.UsePage
Property UsePage As Boolean
Member of View
The UsePage property returns or sets whether to revert to the 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 views page does not appear when the view is active.
The following code 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
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.