Previous Document Next Document

Object Model Reference : Classes : D : Document : Methods : Document.CreateView


Document.CreateView

Function CreateView(Name As String, OriginX As Double, OriginY As Double, [Zoom As Long], [Page As Page]) As View

Description

Member of Document

The CreateView method creates a new View object (that is, a new item in the View Manager list).

Parameter
Description
Name
Specifies the name of the view in CorelDRAW
OriginX
Specifies the x-coordinate of the view. This value is measured in document units.
OriginY
Specifies the y-coordinate of the view. This value is measured in document units.
Zoom
Specifies the user-defined magnification level for a customized view. This parameter is optional, and its default value is 0.
Page
Creates the view for a specified page in the document. This parameter is optional, and its default value is Nothing.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.