Object Model Reference : Classes : D : Document : Methods : Document.CreateView |
Function CreateView(Name As String, OriginX As Double, OriginY As Double, [Zoom As Long], [Page As Page]) As View
Member of Document
The CreateView method creates a new View object (that is, a new item in the View Manager list).
The following VBA example creates a new view and activates it.
Sub Test() |
Dim v As View |
Dim x As Double, y As Double |
x = ActivePage.SizeWidth / 2 |
y = ActivePage.SizeHeight / 2 |
Set v = ActiveDocument.CreateView("My New View", x, y, 200) |
v.Activate |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.