Previous Document Next Document

Object Model Reference : Classes : A : ActiveView : Properties : ActiveView.OriginY


ActiveView.OriginY

Property OriginY As Double

Description

Member of ActiveView

The OriginY property returns or specifies the vertical (y-) coordinate of the drawing window’s center in a CorelDRAW document. If you change the x- or y-coordinate of the active view, you are changing the area of the current document which is presented on the screen.

VBA example

The following VBA example sets the coordinates of the drawing window’s center to (0,0) in the document’s active view. This places the center of the drawing window in the lower-left corner of the page.

Sub OriginXOriginY()
 With ActiveWindow.ActiveView
  .OriginX = 0
  .OriginY = 0
 End With
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.